0% found this document useful (0 votes)
48 views1 page

CrazyEngineers Important Linux Commands QVAIQT

The document summarizes commonly used Linux commands related to processes. It lists commands such as ps to see running processes, kill to stop processes by PID, killall to stop processes by name, and top to see running processes and system resources with real-time updates. Background processes can be run with the & operator and pstree displays a tree of processes.

Uploaded by

golu patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views1 page

CrazyEngineers Important Linux Commands QVAIQT

The document summarizes commonly used Linux commands related to processes. It lists commands such as ps to see running processes, kill to stop processes by PID, killall to stop processes by name, and top to see running processes and system resources with real-time updates. Background processes can be run with the & operator and pstree displays a tree of processes.

Uploaded by

golu patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Linux Command Related with Process

Most commonly used command(s) with process:


For this purpose Use this Command Examples*
To see currently running
Ps $ ps
process 
To stop any process by PID i.e.
kill    {PID} $ kill  1012
to kill process
To stop processes by name i.e.
killall   {Process-name} $ killall httpd
to kill process
To get information about all
Ps -ag $ ps -ag
running process
To stop all process except your
kill 0 $ kill 0
shell
For background processing
(With &, use to put particular
linux-command  & $ ls / -R | wc -l &
command and program in
background)
To display the owner of the
Ps aux $ ps aux
processes along with the process
For e.g. you want to see
To see if a particular process is
  whether Apache web
running or not. For this purpose
ps ax | grep  process-U-want- server process is running
you have to use ps command in
to see or not then give
combination with the grep
  command
command
$ ps ax | grep httpd

To see currently running


$ top
processes and other information
top
like memory and CPU usage
Note that to exit from top
with real time updates.
command press q.
To display a tree of processes pstree $ pstree
* To run some of this command you need to be root or equivalent user.

You might also like