[Ilugc] Tip: Find out current working directory of a process

  • From: knura9@xxxxxxxxx (Arun Khan)
  • Date: Wed, 21 Dec 2011 21:05:04 +0530

2011/12/20 ???????? ???? ?????? (Vignesh Nandha Kumar) <viky.nandha at 
gmail.com>:

On Tue, Dec 20, 2011 at 9:23 PM, Version Control Buddy <vcbuddy at 
gmail.com>wrote:

Run ps aux to find out PID of a process:
$ ps aux | grep {process-name}


pgrep gives the PID of the matched processes precisely.

$ pgrep firefox

I prefer "pgrep -x <app name>"  -x matches the exact name of the application.

-- Arun Khan

Other related posts: