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 does the “echo” command do?
How can you see the command line history?
What is ctrl d?
What is awk good for?
Which command will print your home directory on screen?
Enumerate some of the most commonly used network commands in unix?
What is the nmap command?
How does shebang work?
what is the advaantage of each user having its own copy of the shell?
What does touch command do in unix?
Who invented grep?
What is the behavioural difference between cmp and diff commands?
Which command is used to delete all files in the current directory and all its sub-directories?
How does pipe () work?
What is updatedb?