root@test:~# ps x | grep 'vsftpd'
568 ? Ss 0:00 /usr/sbin/vsftpd
28694 pts/0 S+ 0:00 grep --color=auto vsftpd
How can I exclude the self grep process itself? Also, how do I fetch the process Id (pid) given a part of the name of the process?
I am looking for something along the lines that it will give me pid given the name and excludes the self grep process.