How Can We Help?
NOTE: Tested in Ubuntu 9.04
In this example we want to find the process id for Skype.
- In the command line type in the command below
{codecitation style=”brush: bash;”}pgrep -l skype{/codecitation} - This will list the process id together with the process name for Skype.
-l = List the name of the process
{codecitation style=”brush: bash;”}4322 skype{/codecitation} - To list only the process id type the command without the -l option
{codecitation style=”brush: bash;”}pgrep skype{/codecitation} - This will only list the process id
{codecitation style=”brush: bash;”}4322{/codecitation}