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 does the ?route? command do?

2 Answers  

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

2 Answers   Mascot,

What is a filesystem?

3 Answers  

What is Expansion swap?

1 Answers   KISSI,

what is difference between milestone and run-levels in Solaris ?

0 Answers  

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

2 Answers  

. Using sed and grep, write a command which lists files and directories with following properties: (i) created in 1999 (ii) with user's as owner and group

0 Answers  

What is egrep?

2 Answers  

Why do inode number start from 1 and not 0 ?

3 Answers  

why unix command can be divided into internal and external command

1 Answers   IBM,

in unix profile contains

1 Answers   BFL,

what is difference between kernel and shell?

18 Answers   Juniper Networks,