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
What is unix command?
What does the “echo” command do?
Which command is used to delete all files in the current directory and all its sub-directories?
what is the advaantage of each user having its own copy of the shell?
How do I use grep to search for a file?
Why is grep called grep?
How to use grep command to list find the records of a file containing 10 different strings?
What is awk good for?
What are filter commands in unix?
What is $0 bash?
What is the first character of the output in ls l command?
What is command substitution?
What happens when we execute a unix command?
What's a command word?
Explain command to show the space allocation of files?