SAGARFIVE

Linux – processes

To view currently running processes on the system with the ps command. It mostly return PID(Process ID), TTY(type of terminal ), TIME(process cpu use time),CMD(command used)

1 ps -ef List currently running process in full format
2 ps -ax List current running process
3 ps -u <username> Listing the processes related to specific user
4 ps -C <command> Listing the process related to specific command
5 ps -p <pid> Listing the process with pid
6 ps -ppid <ppid> Listing with parent process id related process 
7 pstree Shows processes in hierarchy
8 ps -L List all threads for a particular process

Linux Terminating : There are four ways to kill or terminate a process. commands allow you to run the system uninterruptedly after terminating a process without rebooting the system. commands can be internal or external.

1 kill To terminate a process is a kill command. You need to know the PID of the process
2 killall It kills all the processes with the specified name in the system.
3 pkill The pkill command uses the name of the process either by typing full name or partial name.
4 xkill Command xkill is used to kill a process on X server without passing process name or PID