Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how unix kernel distinguishes between a normal file and
device file ?

Answer Posted / manasi mishra

for normal file in the ls -l listing there is a '-' as
first character like '-rw-r--r- '.

-rw-r--r-- 1 batch sybase 0 Dec 4 14:50 test1
This identifies it as normal file.

But for device files , they are saved as character or else
blocks . So the first letter is 'c' for character , and 'b'
for blocks.

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the “echo” command do?

1166


How can you see the command line history?

1150


What is ctrl d?

1110


What is awk good for?

1151


Which command will print your home directory on screen?

1093


Enumerate some of the most commonly used network commands in unix?

1179


What is the nmap command?

1199


How does shebang work?

1077


what is the advaantage of each user having its own copy of the shell?

2562


What does touch command do in unix?

1441


Who invented grep?

1176


What is the behavioural difference between cmp and diff commands?

1297


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

1271


How does pipe () work?

1106


What is updatedb?

1060