22. ps command - muneeb-mbytes/linux_course GitHub Wiki

ps

ps stands for "process status".

ps command is used to list the currently running processes and their PIDs along with some other information depends on different options. It reads the process information from the virtual files in /proc file-system. /proc contains virtual files, this is the reason it’s referred as a virtual file system.

Syntax : ps

While running this command . The output contain the information about -

1.PID – the unique process ID

2.TTY – terminal type that the user is logged into

3.TIME – amount of CPU in minutes and seconds that the process has been running

4.CMD – name of the command that launched the process.

Figure.1 show the execution of ps command - Untitled Diagram drawio (10)

                                           Figure.1.ps output GIF 

To learn kill command:https://github.com/muneeb-mbytes/linux_course/wiki/23.-kill_command