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 / asif

Guest,

You are right about the 'ls' command, but 'ls' is a user
level command, which invokes (among others) read system
call to read and display directory contents (file/ dir
names in a directory). Ultimately kernel parses inode of
each file to get its type.

Rgds,
asif

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will the following command do?

1062


Can you enlist some commonly used network commands?

1052


how to sort the content of the file based on numeric values

1730


Explain ‘system calls’ with respect to unix commands?

1039


What are the unix commands?

1029


Which command should you use to find the remaining disk space in unix server?

1232


What does the command '$ls | wc –l > file1' do?

1173


What is updatedb?

990


What is the significance of the 'tee' command?

1136


What is the pipe command?

1125


What does this command do? Cat food 1 > kitty

1530


What are file commands?

1159


What is a bash command?

1112


What command is used to check the current users?

1063


Explain the steps that a shell follows while processing a command.

1162