Skip to main content

Posts

Showing posts with the label Commands Related to Processes

Commands Related to Processes

To see currently running process  ps $ps List the process using most CPU Top , htop $top To stop any process by PID i.e. to kill process kill    {PID} $kill  1012 To stop processes by name i.e. to kill process killall   {Process-name} pkill xkill $killall httpd To get information about all running process ps -ag $ps -ag To stop all process except your shell kill 0 $kill 0 For background processing (With &, use to put particular command and program in background) linux-command  & $ls / -R | wc -l & To display the owner of the processes along with the processes    ps aux $ps aux To see if a particular process is running or not. For this purpose you have to use ps command in combination with the grep command ps ax | grep  process-U-want-to see ...