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 sed awk grep?
Describe the zip/unzip command using gzip.
What is nr in awk command?
What is the comma to show the space allocation of files?
Why is it called a shebang?
Can you enlist some commonly used network commands?
Enlist some filename manipulation commands in unix.
What is {} in find command?
What is the functionality of a top command?
Differentiate cmp command from diff command.
Give the command for finding the current date.
Explain mount and unmount command.
What is “chmod” command?
What is the function of grep command in unix?
Which command is used to kill the last background job?