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

Is grep faster than awk?

561


What is grep and how do you use it?

579


What does pipe () return?

597


What is the search command in unix?

603


Can you explain a little bit about command substitution?

612






How do I clear my terminal history?

586


How can we use grep command in unix?

618


Explain ‘library functions’ with respect to unix commands?

604


How do I use grep to find a file?

583


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

594


What is pipe command in unix?

675


What is merge command in unix?

946


What is command statement?

543


What is awk used for?

624


How do you grep a case insensitive?

541