I just started using Ubuntu as my main OS and I wanted to learn about things I should not do, and learn by the bad things people have done in the past. I came across these email about horror stories that UNIX & Linux sys admins had done on their own system when they where new. Many of them involved the use of the mknod command to both distory and fix a problem. I've never heard of this command before and the man page within Ubuntu is not very helpful. So my question is, what is this command used for, and what are some examples where it is useful in day to day use?
|
|
So yes, in case of a near complete disaster causing the Aside from creating named pipes, I can't think of a single possible day-to-day use for it that an end user would need to concern themselves with -- and even that is stretching the definition of 'day to day use'. |
|||||||||||||
|
|
You can make a named pipe with it. I use it with one program to read from it, and another one to write into it. Makes it easier to communicate between processes. Otherwise, you may create device files, for devices that aren't present. |
|||||
|
|
As oracle DBAs working on raw devices to create Oracle ASM diskgroups, we regularly use The replies above were very helpful to me as we are not system admins. I just wanted to point out that it might be rare from storage admins' point of view to use |
||||
|
|
IMHO, even for making named pipes, the mkfifo command be better than mknod. One, it's self descriptive in it's name, Second, it permits -m option to override umask settings. |
|||
|
|