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 is $0 bash?

749


What is the difference between cat and more command?

759


What is the command to find maximum memory taking process on the server?

768


hw will u use awk in replacing cahrs and files

2813


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

678






Differentiate cmp command from diff command.

677


What are filter commands in unix?

636


What is rmdir command?

656


What is the use of the tee command?

689


Which command is used to create a directory?

660


How do I use grep to find a file?

666


What difference between cmp and diff commands?

819


What does the metacharacter mean?

690


What is the functionality of a top command?

704


What is the general format of unix command syntax?

781