how unix kernel distinguishes between a normal file and
device file ?

Answer Posted / sougat

nornal are basically divided into two part text(printable)
or binary (printable ornonprintable character covering
entire ascii range)
where device file contain (stream of un interpretable
character)they have some attributes stored some where else
for the device to read and excute accordingly

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1849


Write a command that will display files in the current directory, in a colored, long format.

781


What is the command to compare two files in unix?

708


Who wrote grep?

658


What does this command do? Cat food 1 > kitty

1068






What is the size of time_t?

762


how to sort the content of the file based on numeric values

1375


What is the command to find hidden files in the current directory?

691


What are reported commands?

658


Explain mount and unmount command.

717


Explain command to view process running?

699


Which command can you use to find the currently running process in unix server?

673


How does the system know where one command ends and another begins?

1691


What is the behavioural difference between cmp and diff commands?

752


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

678