how many types of file in unix?

Answer Posted / manish

1. Regular file:(-):contains data in either text format or
binary format
2. Directory file:(d):contains entries of files
3. FIFO file:(f):2 communicate betn 2 processes running on
same system
4. Block special file:(b):name given 2 special blocks of
hard disk
5. Sybolic file:(l):its a link or pointer to already
existing file
6. Socket file:(s):2 communicate betn 2 processes running on
different system in a network
7. Character special file:(c):handles only characted
formatted data
eg.stdin, stdout, stderr

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it called grep?

573


Differentiate cat command from more command.

592


How do you grep recursively?

568


What is awk used for?

628


What is ‘ps’ command for?

625






Why is grep called grep?

793


How do you grep a case insensitive?

552


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:

1774


Which command is used to kill the last background job?

791


What is the use of sed command in unix?

610


What is command statement?

555


What do chmod command do?

610


What is command substitution?

631


Who wrote grep?

591


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

658