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 the use of cut command in unix?

694


How to use grep command to list find the records of a file containing 10 different strings?

647


Explain how to use grep command to list find the records of a file containing 10 different strings?

594


What is “chmod” command?

567


Is ‘du’ a command? If so, what is its use?

639






why metadb requires a seperate slice to create Solaris volume manager

2556


What is grep and how do you use it?

579


How do I search for a file in unix command?

549


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

2038


What is rmdir command?

555


How does pipe () work?

597


What's a command word?

591


How do I use grep to find a file?

583


What does touch command do in unix?

731


Why is it called a shebang?

574