burgergogl.blogg.se

Linux list processes
Linux list processes











STIME - Same as START, the time when the command started.C - Same as %CPU, the process CPU utilization.UID - Same as USER, the user who runs the process.The labels that are not already explained have the following meaning: The command displays information in eight columns labeled UID, PID, PPID, C, STIME, TIME, and CMD. The -f stands full-format listing, which provides detailed information about the processes.The -e option instructs ps to display all processes.For example, to sort the output based on the memory usage The ps command also allows you to sort the output. The f option tells ps to display a tree view of parent to child processes: ps auxf START - The time when the command started.STAT - The the process state code, such as Z (zombie), S (sleeping), and R (running).

linux list processes

VSZ - Virtual memory size of the process in KiB.%MEM - The percentage of the process’s resident set size to the physical memory on the machine.We already explained PID, TTY, TIME and CMD labels. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND The command displays information in eleven columns labeled USER, PID, %CPU, %MEM, VSZ, RSS, STAT, START, TTY, TIME, and CMD. Those are mainly processes that are started on boot time and running in the background The x option instructs ps to list the processes without a controlling terminal.u stands for a user-oriented format that provides detailed information about the processes.Only the processes that not associated with a terminal and processes of group leaders are not shown.

linux list processes

The a option tells ps to display the processes of all users.Ps is most frequently used with the following combination of options: The ps command accepts a vast number of options that can be used to display a specific group of processes and different information about the process, but only a handful are needed in day-to-day usage. The real power of the ps command comes when launched with additional options.

linux list processes

The output above is not very useful as it doesn’t contain much information.

  • CMD - The name of the command that was used to start the process.
  • TIME - The cumulative CPU time of the process, shown in minutes and seconds.
  • TTY - The name of the controlling terminal for the process.
  • Knowing the PID allows you to kill a malfunctioning process Usually, when running the ps command, the most important information the user is looking for is the process PID. The four columns are labeled PID, TTY, TIME, and CMD. The output includes information about the shell ( bash) and the process running in this shell ( ps, the command that you typed): PID TTY TIME CMD In it’s simplest form, when used without any option, ps will print four columns of information for minimum two processes running in the current shell, the shell itself, and the processes that run in the shell when the command was invoked.
  • GNU long options, preceded by two dashes.ĭifferent option types can be mixed, but in some particular cases, conflicts can appear, so it is best to stick with one option type.
  • BSD style options, used without a dash.
  • UNIX style options, preceded by a single dash.
  • For historical and compatibility reasons, the ps command accepts several different types of options:













    Linux list processes