Linux command
mkfifo 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Create named pipe
mkfifo [pipe_name]
Create with permissions
mkfifo -m [600] [pipe_name]
Create multiple pipes
mkfifo [pipe1] [pipe2] [pipe3]
Create FIFO with default SELinux context
mkfifo -Z [pipe_name]
说明
mkfifo creates named pipes (FIFOs). Named pipes allow inter-process communication. The tool creates special files for piping between processes. Data flows first-in-first-out.
参数
- -m _MODE_, --mode=_MODE_
- Set file permission bits to MODE (as with chmod), not a=rw minus umask.
- -Z
- Set the SELinux security context to the default type.
- --context=_CTX_
- Set the SELinux or SMACK security context to the specified value.
- --help
- Display help information.
- --version
- Output version information.
FAQ
What is the mkfifo command used for?
mkfifo creates named pipes (FIFOs). Named pipes allow inter-process communication. The tool creates special files for piping between processes. Data flows first-in-first-out.
How do I run a basic mkfifo example?
Run `mkfifo [pipe_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -m _MODE_, --mode=_MODE_ do in mkfifo?
Set file permission bits to MODE (as with chmod), not a=rw minus umask.