[LINUX] Process confirmation command ps option memorandum

It's super basic, but the option memorandum of the process confirmation command ps.

ps No options. It comes out with the process of my user omitted.

$ ps

  PID TTY           TIME CMD
24863 ttys000    0:00.10 /bin/bash -l
32161 ttys004    0:00.05 -bash

ps -f f option. You can additionally check the UID, PPID, C, and STIME columns.

$ ps -f

  UID   PID  PPID   C STIME   TTY           TIME CMD
  501 24863 24861   0  7:32PM ttys000    0:00.10 /bin/bash -l
  501 32161 32160   0  6:45PM ttys004    0:00.05 -bash

ps -ef

$ ps -ef

  UID   PID  PPID   C STIME   TTY           TIME CMD
0 1 0 0 Thu 10 AM??         3:30.67 /sbin/launchd
0 102 1 0 Thu 10 AM??         0:07.61 /usr/sbin/syslogd
0 103 1 0 Thu 10 AM??         0:17.05 /usr/libexec/UserEventAgent (System)

The running processes of all users are displayed in full.

column meaning
PID Process number
PPID Parent process ID
C Process CPU usage
STIME Process start time
TTY Terminal name
TIME Total process execution time
CMD Execution command name

ps -ef | grep xxxx Basically use this when you want to find a process.

$ ps -ef | grep xxxx


$ ps -ef | grep httpd

0 141 1 0 Thu 10 AM??         0:02.34 /usr/sbin/httpd -D FOREGROUND
70 320 141 0 Thu 10AM??         0:00.00 /usr/sbin/httpd -D FOREGROUND
  501 32954 32161   0  7:31PM ttys004    0:00.00 grep httpd


[Linux] Reason for adding -ef option when executing ps | Financial engineer

Recommended Posts

Process confirmation command ps option memorandum
Command memorandum
Command memorandum
nc command memorandum
Memorandum conda command
ps command "wchan"
setuptools command memorandum
Linux: Rename the process displayed by the ps command
RedHat configuration confirmation command
memorandum of vi command
Linux basic command memorandum
CentOS version confirmation command
ps command cheat sheet
Frequently used ps command options
Linux command memorandum [for beginners]
Introduction to vi command (memorandum)