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

Describe the zip/unzip command using gzip.

615


How does shebang work?

594


What is the difference between cat and more command?

627


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

1254


What does the command ' $who | sort –logfile > newfile' do?

772






Name the unix command to find how many days the server has been up.

606


What is .sh file?

624


How many unix commands are there?

631


Differentiate cmp command from diff command.

588


What is grep short for?

558


What is the comma to show the space allocation of files?

562


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:

1764


What is the use of sed command in unix?

601


What is the use of tee command?

573


Is grep faster than awk?

561