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
What is the comma to show the space allocation of files?
What command is used to switching between users in unix?
What difference between cmp and diff commands?
How does shebang work?
Explain ‘system calls’ with respect to unix commands?
What are awk commands?
What is $0 bash?
What is {} in find command?
What is time_t?
Differentiate cmp command from diff command.
What is a command and examples?
What do chmod command do?
How to use grep command to list find the records of a file containing 10 different strings?
What does the md command do?
What is awk used for?