


There are numerous ways to manage and observe processes in a Linux system using the ps -ef command. The seventh column displays the command line used to start the process.If a process is running in the background and is not connected to a TTY, the TTY column displays a question mark (?). The sixth column is the TTY column that displays a character string that represents the TTY associated with each process.The fifth column displays the time at which the process was started.The fourth column displays the amount of CPU time used by the process, expressed as a percentage.The Third column displays the PPID, which is the PID of the parent process that started the current process.The Second column displays the PID of the process, which is a unique identifier assigned to every process by the system.The First column displays the user ID (UID) of the user who started the process.Here is an output of the ps -ef command: ps -ef The ps -ef returns a list of all currently running processes on the system, along with information about each one, including its process ID (PID), parent process ID (PPID), initiating user, CPU, and memory consumption, and command line though which it is initiated. However, with the addition of the -ef option, the command displays all processes in the system, regardless of which terminal session they were started in. What is ps -ef command in Linux?īy default, the ps command only displays processes that are running in the current terminal window. For illustration I will use Linux Mint 21 operating system but you can use any of the Linux distros.
Ps ef command explanation how to#
We will examine how this command functions in this post and how to use it to manage and monitor processes on a Linux system. The ps -ef command is a commonly used Linux command that provides a detailed list of all currently running processes in the system.
