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

What are different types of shells?

7 Answers   BMC,


What is an inode?

8 Answers  


System A can contact system B, but not in reverse, not firewall, not tcp wrappers, what is the reason ?

2 Answers  


The UNIX shell is.... a).does not come with the rest of the system b).forms the interface between the user and the kernal c) does not give any scope for programming d) deos not allow calling one program from with in another e) all of the above

2 Answers   IBM,


What steps are required to perform a bare-metal recovery?

1 Answers  






Explain iostat, vmstat and netstat.

2 Answers  


differentiate between named & unnamed pipe.

11 Answers   Cisco, IIT, ISEC,


What is a level 0 backup?

2 Answers   Atos Origin,


How does the inode map to data block of a file?

3 Answers  


interprocess command in unix be achieved by a)pipes b)messages c)semaphores d)shared memory e)all

2 Answers   Mascot,


What is the difference between windows environment and Unix environment ?

8 Answers   Oracle,


how can we create the script in crontab at mid night on sunday,satuarday,fiday 0n monyh october,november,january? please give me answer if anybody knows ? because on important purpose.

2 Answers  


Categories