GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Operating System  >  Unix Commands
Go To First  |  Previous Question  |  Next Question 
 Unix Commands  |  Question 8 of 73    Print  
How does the kernel differentiate device files and ordinary files?
Kernel checks 'type' field in the file's inode structure.



  
Total Answers and Comments: 1 Last Update: February 15, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 15, 2006 06:07:01   #1  
umesh        

RE: How does the kernel differentiate device files and...

device filles are of 2 types --- charcater device file and block device file

type field in the file's inode structure

b--- block device file

c--- character device file


 
Is this answer useful? Yes | No

 Related Questions

Kernel checks 'type' field in the file's inode structure. 
Latest Answer : device filles are of 2 types --- charcater device file and block device filetype field in the file's inode structureb--- block device filec--- character device file ...

ls stands for list; so it displays the list of the files that starts with 'chapter' with suffix '1' to '5', chapter1, chapter2, and so on. 
Latest Answer : ls -x displays the list of contents in linewise instead of column wise ...

$ echo *It is similar to 'ls' command and displays all the files in the currentdirectory. 
Latest Answer : Ya u r correct, $echo *  will give u the files in the current directory similar to ls command. ...

Which command is used to delete all files in the current directory and all  its sub-directories?
rm -r * 

cmp - Compares two files byte by byte and displays the first mismatchdiff - tells the changes to be made to make the files identical  
Latest Answer : 'cmp' and 'diff' both command are used to list the differences, the difference between both the command is that 'cmp' is used to find the difference between files whereas 'diff' is used to find the difference between directories.cmp ...

1. Output of who should be displayed on the screen with value of total number of users who have logged in displayed at the bottom of the list.2. Output of ls should be displayed on the screen and from 
Latest Answer : 1. who | tee /dev/pts/4 | cut -d " " -f 1 | uniq | echo "no of users logged in are `wc -l`" who - displays all the loged in users tee - pass the who output to terminal output /dev/pts/4 and also to cut command. where /dev/pts/4 is the ...

Latest Answer : chmod ...

Latest Answer :  It is inside /stand directory with name of "vmunix". ...
Read Answers (3) | Asked by : SAJIT KUMAR

Write a shell script to list only the hidden files in the current directories? What is the o/p of following command $a =*, echo $a, echo "$a"? Which of the following is allowed in an arithmetic involving expr instruction. [],{},()? If values "hi", "Hello","Bye","Good Bye" are supplied to the following statement what will be the o/p read n1,n2 , echo $n1 $n2? How do you know that how many commands can be stored in the buffer in one session?
Read Answers (8) | Asked by : udaybond

How will u list the contents of parent directory from the current directory? What are the default system wide permissions for a file and directory? What is the default umask value?A user is not able to change the permission , What can it happen? What's the difference between ls -F , ls -p? If a file permission are 000, can the superuser still read and write to that file.? What's the command to remove the files without write permission? How will u make sure that no one can see the files


 Sponsored Links

 
Related Articles

How to call C header that is not provided generally by system in C++?

Headers can be called by using extern C Syntax of extern C is: extern "C" <function declaration> for example to call C functions from C++ we can write extern "C" { <function declaration> <function declaration> ...
 

Importance of Header Files

What is the importance of header files? The main role of header file is it is used to share information among various files. In brief, if we have several functions say 4 functions named as f1, f2, f3, f4 placed in file say sample.c and if all the functions want to get accessed by each other then all
 

SQL Table Commands

SQL Table Commands Overview As mentioned previously in this series of SQL articles, databases are primarily composed of tables. The “columns and rows” structure of the table allows data to be efficiently inserted, manipulated, updated, and deleted from the database. The three mos
 

System Implementation

In the previous articles relating to SDLC Stages we discussed about Project Planning and Feasibility Study moved on to System Analysis and Requirements which lead to Systems Design. Systems Design will naturally lead to another stage where it becomes closer to the actual deployment of the p
 

System Analysis and Requirements

In the previous chapter, we’ve discussed about project planning and feasibility study. That stage was important because it tries to establish a problem in our highly technological world. As our understanding on what we can do in computers evolve and so are the things that we need to make t
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Top 10 Application Security Vulnerabilities in Web.config Files - Part One

These days, the biggest threat to an network security comes from its public Web site and the Web-based applications found there. Unlike internal-only network services such as databases-which can be sealed off from the outside via firewalls-a public Web site is generally accessible to anyone who wan
 

Top 10 Application Security Vulnerabilities in Web.config Files - Part Two

Some of the most common and dangerous application security vulnerabilities that exist in ASP.NET Web-based applications come not from the C# or VB.NET code that make up its pages and service methods, but instead from the XML code that makes up its Web.config files. Incorrect configurations can open
 

Operating Systems and IT Certification

With the burst of information technology that is becoming a part of the dominant culture throughout the world, are programs that are designed to help those in this area to grow in knowledge.  By understanding the different technologies that are available, one is able to use them and impleme
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape