📄 pidof.8
字号:
.TH PIDOF 8 "01 Sep 1998" "" "Linux System Administrator's Manual".SH NAMEpidof -- find the process ID of a running program..SH SYNOPSIS.B pidof.RB [ \-s ].RB [ \-x ].RB [ \-o.IR omitpid ].RB [ \-o.IR omitpid.. ].B program.RB [ program.. ].SH DESCRIPTION.B Pidoffinds the process id's (pids) of the named programs. It prints thoseid's on the standard output. This program is on some systems used inrun-level change scripts, especially when the system has a\fISystem-V\fP like \fIrc\fP structure. In that case these scripts arelocated in /etc/rc?.d, where ? is the runlevel. If the system hasa.B start-stop-daemon(8) program that should be used instead..SH OPTIONS.IP -sSingle shot - this instructs the program to only return one \fIpid\fP..IP -xScripts too - this causes the program to also return process id's ofshells running the named scripts..IP -o \fIomitpid\fPTells \fIpidof\fP to omit processes with that process id. The specialpid \fB%PPID\fP can be used to name the parent process of the \fIpidof\fPprogram, in other words the calling shell or shell script..SH NOTES\fIpidof\fP is simply a (symbolic) link to the \fIkillall5\fP program,which should also be located in \fP/sbin\fP..PPWhen \fIpidof\fP is invoked with a full pathname to the program itshould find the pid of, it is reasonably safe. Otherwise it is possiblethat it returns pids of running programs that happen to have the same nameas the program you're after but are actually other programs..SH SEE ALSO.BR shutdown (8),.BR init (8),.BR halt (8),.BR reboot (8).SH AUTHORMiquel van Smoorenburg, miquels@cistron.nl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -