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

What is command substitution?

734


What is the command to view process running?

673


What is time_t?

684


What is the difference between cat and more command?

759


What is difference between grep and find command in unix?

667






Is grep faster than awk?

647


What command is used to check the current users?

680


What do chmod command do?

682


Explain mount and unmount command.

717


Can you enlist some commonly used network commands?

681


What is the unix command to confirm a remote host is alive or not?

669


What does sed command do in unix?

656


Can you explain a little bit about command substitution?

709


What are filter commands in unix?

636


How many unix commands are there?

710