What does mknod do? What?s a named pipe?



What does mknod do? What?s a named pipe? ..

Answer / harendrakumarlinux

in linux system everything includind hardware is a file. the
coomand mknod,mkfifo craetes these special files like block
files for a disk which can take multiple inputs
simultaneously or a special character file denoted by c
which can take one input at a time

names pipes(also known as fifo) are special pipes these are
used for interprocess communication. suppose you have written
ps -e |less in this example the output of the ps -e coomand
will be temporaroly moved to temporary file created by this
pipe and you will be able to see the data. but as soon as
this process ends this file will be ended. but the files
created by named pipes will not be deleted. named pipes are
created using the command mkfifo or mknod. named pipes are
system persistant.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More Unix AllOther Interview Questions

If Media Server fails. What are the steps to be followed? Can anyone please reply for this question Thanks, Ganesh

0 Answers   HCL, IBM,


How do you use Unix for Backend Testing ?

1 Answers   Wipro,


How will you run the script in UNIX?

5 Answers   BMC,


What is a pipe?

18 Answers   Fichtner,


What are the processes that are not bothered by the swapper? Give Reason.

1 Answers  






What is the difference between Swapping and Paging?

4 Answers   IBM,


HOW DO CREATE A NFS FILE SYSTEM

4 Answers   Mind Tree,


What are the read or write or execute bits on a directory mean?

2 Answers  


Name key files or directories on a Windows system that should always be backed up?

2 Answers  


how to set request time out value for name resolution on clients (hp-ux) ?

1 Answers   Amdocs,


What are setuid/setgid in relation to file permissions?

2 Answers   Cap Gemini, IBM,


What UNIX command will control the default file permissions when files are created?

3 Answers  


Categories