FREQUENTLY ASKED QUESTIONS (Linux)
Q. How do i find the Process ID (PID) of a process/service in Linux operating systems?
You can find the process id of a linux process in many ways. The simplest command to find it is "pidof" command. You can also use "ps" command fo find the Process ID of a Linux process. All these commands should work on all RPM based distributions like Fedora, Redhat, CentOS, etc.
Find PID of vsFTPd process using "pidof" command
[root@server ~]# pidof vsftpd
1634
Find PID of vsFTPd process using "ps" command
[root@server ~]# ps -e | grep vsftpd
1634 ? 00:00:00 vsftpd
Q. How do i find the Process ID (PID) of a process/service in Linux operating systems?
You can find the process id of a linux process in many ways. The simplest command to find it is "pidof" command. You can also use "ps" command fo find the Process ID of a Linux process. All these commands should work on all RPM based distributions like Fedora, Redhat, CentOS, etc.
Find PID of vsFTPd process using "pidof" command
[root@server ~]# pidof vsftpd
1634
Find PID of vsFTPd process using "ps" command
[root@server ~]# ps -e | grep vsftpd
1634 ? 00:00:00 vsftpd
0 comments:
Post a Comment