Finding PID of a Process in Fedora, Redhat, CentOS

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

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons