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 is a Map?

0 Answers  


in unix how to change old name to new name

5 Answers  


How to list only the directories inside a directory?

4 Answers  


What is the difference between grep & find?

3 Answers   HCL,


Have you used VI editor?

1 Answers   BMC,






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

1 Answers   Amdocs,


How do you log in to a remote Unix box?

2 Answers  


What is the job responsibility of a System Administrator (UNIX/LINUX),briefly describe (Also point out system admin's daily job details),specify job type & job description?

2 Answers   HP, ICS Integrated Computer Solutions, TCS,


What is default permissions for others in a file?

5 Answers  


In Unix inter process communication take place using?

3 Answers   TCS,


Why do inode number start from 1 and not 0 ?

3 Answers  


How many VI editor modes do you know?

8 Answers   Infosys,


Categories