사용 버전 : Linux 우분투(레드햇 계열) 24.04.01 LTS 버전
사용한 시스템 지역/언어 : 대한민국/한글
man ps 원문
PS(1) User Commands PS(1)
NAME
ps - report a snapshot of the current processes.
SYNOPSIS
ps [options]
DESCRIPTION
ps displays information about a selection of the active processes. If
you want a repetitive update of the selection and the displayed
information, use top instead.
This version of ps accepts several kinds of options:
1 UNIX options, which may be grouped and must be preceded by a dash.
2 BSD options, which may be grouped and must not be used with a dash.
3 GNU long options, which are preceded by two dashes.
Options of different types may be freely mixed, but conflicts can
appear. There are some synonymous options, which are functionally
identical, due to the many standards and ps implementations that this
ps is compatible with.
By default, ps selects all processes with the same effective user ID
(euid=EUID) as the current user and associated with the same terminal
as the invoker. It displays the process ID (pid=PID), the terminal
associated with the process (tname=TTY), the cumulated CPU time in
[DD-]hh:mm:ss format (time=TIME), and the executable name (ucmd=CMD).
Output is unsorted by default.
The use of BSD-style options will add process state (stat=STAT) to the
default display and show the command args (args=COMMAND) instead of the
executable name. You can override this with the PS_FORMAT environment
variable. The use of BSD-style options will also change the process
selection to include processes on other terminals (TTYs) that are owned
by you; alternately, this may be described as setting the selection to
be the set of all processes filtered to exclude processes owned by
other users or not on a terminal. These effects are not considered
when options are described as being "identical" below, so -M will be
considered identical to Z and so on.
Except as described below, process selection options are additive. The
default selection is discarded, and then the selected processes are
added to the set of processes to be displayed. A process will thus be
shown if it meets any of the given selection criteria.
EXAMPLES
To see every process on the system using standard syntax:
ps -e
ps -ef
ps -eF
ps -ely
To see every process on the system using BSD syntax:
ps ax
ps axu
To print a process tree:
ps -ejH
ps axjf
To get info about threads:
ps -eLf
ps axms
To get security info:
ps -eo euser,ruser,suser,fuser,f,comm,label
ps axZ
ps -eM
To see every process running as root (real & effective ID) in user
format:
ps -U root -u root u
To see every process with a user-defined format:
ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm
ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm
ps -Ao pid,tt,user,fname,tmout,f,wchan
Print only the process IDs of syslogd:
ps -C syslogd -o pid=
Print only the name of PID 42:
ps -q 42 -o comm=
SIMPLE PROCESS SELECTION
a Lift the BSD-style "only yourself" restriction, which is imposed
upon the set of all processes when some BSD-style (without "-")
options are used or when the ps personality setting is BSD-like.
The set of processes selected in this manner is in addition to
the set of processes selected by other means. An alternate
description is that this option causes ps to list all processes
with a terminal (tty), or to list all processes when used
together with the x option.
-A Select all processes. Identical to -e.
-a Select all processes except both session leaders (see getsid(2))
and processes not associated with a terminal.
-d Select all processes except session leaders.
--deselect
Select all processes except those that fulfill the specified
conditions (negates the selection). Identical to -N.
-e Select all processes. Identical to -A.
g Really all, even session leaders. This flag is obsolete and may
be discontinued in a future release. It is normally implied by
the a flag, and is only useful when operating in the sunos4
personality.
-N Select all processes except those that fulfill the specified
conditions (negates the selection). Identical to --deselect.
T Select all processes associated with this terminal. Identical
to the t option without any argument.
r Restrict the selection to only running processes.
x Lift the BSD-style "must have a tty" restriction, which is
imposed upon the set of all processes when some BSD-style
(without "-") options are used or when the ps personality
setting is BSD-like. The set of processes selected in this
manner is in addition to the set of processes selected by other
means. An alternate description is that this option causes ps
to list all processes owned by you (same EUID as ps), or to list
all processes when used together with the a option.
PROCESS SELECTION BY LIST
These options accept a single argument in the form of a blank-separated
or comma-separated list. They can be used multiple times. For
example: ps -p "1 2" -p 3,4
123 Identical to --pid 123.
+123 Identical to --sid 123.
-123 Select by process group ID (PGID).
-C cmdlist
Select by command name. This selects the processes whose
executable name is given in cmdlist. NOTE: The command name is
not the same as the command line. Previous versions of procps
and the kernel truncated this command name to 15 characters.
This limitation is no longer present in both. If you depended on
matching only 15 characters, you may no longer get a match.
-G grplist
Select by real group ID (RGID) or name. This selects the
processes whose real group name or ID is in the grplist list.
The real group ID identifies the group of the user who created
the process, see getgid(2).
-g grplist
Select by session OR by effective group name. Selection by
session is specified by many standards, but selection by
effective group is the logical behavior that several other
operating systems use. This ps will select by session when the
list is completely numeric (as sessions are). Group ID numbers
will work only when some group names are also specified. See
the -s and --group options.
--Group grplist
Select by real group ID (RGID) or name. Identical to -G.
--group grplist
Select by effective group ID (EGID) or name. This selects the
processes whose effective group name or ID is in grplist. The
effective group ID describes the group whose file access
permissions are used by the process (see getegid(2)). The -g
option is often an alternative to --group.
p pidlist
Select by process ID. Identical to -p and --pid.
-p pidlist
Select by PID. This selects the processes whose process ID
numbers appear in pidlist. Identical to p and --pid.
--pid pidlist
Select by process ID. Identical to -p and p.
--ppid pidlist
Select by parent process ID. This selects the processes with a
parent process ID in pidlist. That is, it selects processes
that are children of those listed in pidlist.
q pidlist
Select by process ID (quick mode). Identical to -q and
--quick-pid.
-q pidlist
Select by PID (quick mode). This selects the processes whose
process ID numbers appear in pidlist. With this option ps reads
the necessary info only for the pids listed in the pidlist and
doesn't apply additional filtering rules. The order of pids is
unsorted and preserved. No additional selection options, sorting
and forest type listings are allowed in this mode. Identical to
q and --quick-pid.
--quick-pid pidlist
Select by process ID (quick mode). Identical to -q and q.
-s sesslist
Select by session ID. This selects the processes with a session
ID specified in sesslist.
--sid sesslist
Select by session ID. Identical to -s.
t ttylist
Select by tty. Nearly identical to -t and --tty, but can also
be used with an empty ttylist to indicate the terminal
associated with ps. Using the T option is considered cleaner
than using t with an empty ttylist.
-t ttylist
Select by tty. This selects the processes associated with the
terminals given in ttylist. Terminals (ttys, or screens for
text output) can be specified in several forms: /dev/ttyS1,
ttyS1, S1. A plain "-" may be used to select processes not
attached to any terminal.
--tty ttylist
Select by terminal. Identical to -t and t.
U userlist
Select by effective user ID (EUID) or name. This selects the
processes whose effective user name or ID is in userlist. The
effective user ID describes the user whose file access
permissions are used by the process (see geteuid(2)). Identical
to -u and --user.
-U userlist
Select by real user ID (RUID) or name. It selects the processes
whose real user name or ID is in the userlist list. The real
user ID identifies the user who created the process, see
getuid(2).
-u userlist
Select by effective user ID (EUID) or name. This selects the
processes whose effective user name or ID is in userlist.
The effective user ID describes the user whose file access
permissions are used by the process (see geteuid(2)). Identical
to U and --user.
--User userlist
Select by real user ID (RUID) or name. Identical to -U.
--user userlist
Select by effective user ID (EUID) or name. Identical to -u and
U.
OUTPUT FORMAT CONTROL
These options are used to choose the information displayed by ps. The
output may differ by personality.
-c Show different scheduler information for the -l option.
--context
Display security context format (for SELinux).
-f Do full-format listing. This option can be combined with many
other UNIX-style options to add additional columns. It also
causes the command arguments to be printed. When used with -L,
the NLWP (number of threads) and LWP (thread ID) columns will be
added. See the c option, the format keyword args, and the
format keyword comm.
-F Extra full format. See the -f option, which -F implies.
--format format
user-defined format. Identical to -o and o.
j BSD job control format.
-j Jobs format.
l Display BSD long format.
-l Long format. The -y option is often useful with this.
-M Add a column of security data. Identical to Z (for SELinux).
O format
is preloaded o (overloaded). The BSD O option can act like -O
(user-defined output format with some common fields predefined)
or can be used to specify sort order. Heuristics are used to
determine the behavior of this option. To ensure that the
desired behavior is obtained (sorting or formatting), specify
the option in some other way (e.g. with -O or --sort). When
used as a formatting option, it is identical to -O, with the BSD
personality.
-O format
Like -o, but preloaded with some default columns. Identical to
-o pid,format,state,tname,time,command or -o pid,format,tname,
time,cmd, see -o below.
o format
Specify user-defined format. Identical to -o and --format.
-o format
User-defined format. format is a single argument in the form of
a blank-separated or comma-separated list, which offers a way to
specify individual output columns. The recognized keywords are
described in the STANDARD FORMAT SPECIFIERS section below.
Headers may be renamed (ps -o pid,ruser=RealUser -o
comm=Command) as desired. If all column headers are empty (ps
-o pid= -o comm=) then the header line will not be output.
Column width will increase as needed for wide headers; this may
be used to widen up columns such as WCHAN (ps -o pid,wchan=WIDE-
WCHAN-COLUMN -o comm). Explicit width control (ps opid,
wchan:42,cmd) is offered too. The behavior of ps -o pid=X,
comm=Y varies with personality; output may be one column named
"X,comm=Y" or two columns named "X" and "Y". Use multiple -o
options when in doubt. Use the PS_FORMAT environment variable
to specify a default as desired; DefSysV and DefBSD are macros
that may be used to choose the default UNIX or BSD columns.
-P Add a column showing psr.
s Display signal format.
u Display user-oriented format.
v Display virtual memory format.
X Register format.
-y Do not show flags; show rss in place of addr. This option can
only be used with -l.
Z Add a column of security data. Identical to -M (for SELinux).
OUTPUT MODIFIERS
c Show the true command name. This is derived from the name of
the executable file, rather than from the argv value. Command
arguments and any modifications to them are thus not shown.
This option effectively turns the args format keyword into the
comm format keyword; it is useful with the -f format option and
with the various BSD-style format options, which all normally
display the command arguments. See the -f option, the format
keyword args, and the format keyword comm.
--cols n
Set screen width.
--columns n
Set screen width.
--cumulative
Include some dead child process data (as a sum with the parent).
-D format
Set the date format of the lstart field to format. This format
is parsed by strftime(3) and should be a maximum of 24
characters to not mis-align columns.
--date-format format
Identical to -D.
e Show the environment after the command.
f ASCII art process hierarchy (forest).
--forest
ASCII art process tree.
h No header. (or, one header per screen in the BSD personality).
The h option is problematic. Standard BSD ps uses this option
to print a header on each page of output, but older Linux ps
uses this option to totally disable the header. This version of
ps follows the Linux usage of not printing the header unless the
BSD personality has been selected, in which case it prints a
header on each page of output. Regardless of the current
personality, you can use the long options --headers and
--no-headers to enable printing headers each page or disable
headers entirely, respectively.
-H Show process hierarchy (forest).
--headers
Repeat header lines, one per page of output.
k spec Specify sorting order. Sorting syntax is
[+|-]key[,[+|-]key[,...]]. Choose a multi-letter key from the
STANDARD FORMAT SPECIFIERS section. The "+" is optional since
default direction is increasing numerical or lexicographic
order. Identical to --sort.
Examples:
ps jaxkuid,-ppid,+pid
ps axk comm o comm,args
ps kstart_time -ef
--lines n
Set screen height.
n Numeric output for WCHAN and USER (including all types of UID
and GID).
--no-headers
Print no header line at all. --no-heading is an alias for this
option.
O order
Sorting order (overloaded). The BSD O option can act like -O
(user-defined output format with some common fields predefined)
or can be used to specify sort order. Heuristics are used to
determine the behavior of this option. To ensure that the
desired behavior is obtained (sorting or formatting), specify
the option in some other way (e.g. with -O or --sort).
For sorting, obsolete BSD O option syntax is
O[+|-]k1[,[+|-]k2[,...]]. It orders the processes listing
according to the multilevel sort specified by the sequence of
one-letter short keys k1,k2, ... described in the OBSOLETE SORT
KEYS section below. The "+" is currently optional, merely
re-iterating the default direction on a key, but may help to
distinguish an O sort from an O format. The "-" reverses
direction only on the key it precedes.
--rows n
Set screen height.
S Sum up some information, such as CPU usage, from dead child
processes into their parent. This is useful for examining a
system where a parent process repeatedly forks off short-lived
children to do work.
--sort spec
Specify sorting order. Sorting syntax is
[+|-]key[,[+|-]key[,...]]. Choose a multi-letter key from the
STANDARD FORMAT SPECIFIERS section. The "+" is optional since
default direction is increasing numerical or lexicographic
order. Identical to k. For example: ps jax --sort=uid,-ppid,
+pid
--signames
Show signal masks using abbreviated signal names and expands the
collumn. If the column width cannot show all signals, the
column will end with a plus "+". Columns with only a hyphen
have no signals.
w Wide output. Use this option twice for unlimited width.
-w Wide output. Use this option twice for unlimited width.
--width n
Set screen width.
THREAD DISPLAY
H Show threads as if they were processes.
-L Show threads, possibly with LWP and NLWP columns.
m Show threads after processes.
-m Show threads after processes.
-T Show threads, possibly with SPID column.
OTHER INFORMATION
--help section
Print a help message. The section argument can be one of
simple, list, output, threads, misc, or all. The argument can
be shortened to one of the underlined letters as in:
s|l|o|t|m|a.
--info Print debugging info.
L List all format specifiers.
V Print the procps-ng version.
-V Print the procps-ng version.
--version
Print the procps-ng version.
NOTES
This ps works by reading the virtual files in /proc. This ps does not
need to be setuid kmem or have any privileges to run. Do not give this
ps any special permissions.
CPU usage is currently expressed as the percentage of time spent
running during the entire lifetime of a process. This is not ideal,
and it does not conform to the standards that ps otherwise conforms to.
CPU usage is unlikely to add up to exactly 100%.
The SIZE and RSS fields don't count some parts of a process including
the page tables, kernel stack, struct thread_info, and struct
task_struct. This is usually at least 20 KiB of memory that is always
resident. SIZE is the virtual size of the process (code+data+stack).
Processes marked <defunct> are dead processes (so-called "zombies")
that remain because their parent has not destroyed them properly.
These processes will be destroyed by init(8) if the parent process
exits.
If the length of the username is greater than the width of the display
column, the username will be truncated. See the -o and -O formatting
options to customize length.
Commands options such as ps -aux are not recommended as it is a
confusion of two different standards. According to the POSIX and UNIX
standards, the above command asks to display all processes with a TTY
(generally the commands users are running) plus all processes owned by
a user named x. If that user doesn't exist, then ps will assume you
really meant "ps aux".
PROCESS FLAGS
The sum of these values is displayed in the "F" column, which is
provided by the flags output specifier:
1 forked but didn't exec
4 used super-user privileges
PROCESS STATE CODES
Here are the different values that the s, stat and state output
specifiers (header "STAT" or "S") will display to describe the state of
a process:
D uninterruptible sleep (usually IO)
I Idle kernel thread
R running or runnable (on run queue)
S interruptible sleep (waiting for an event to complete)
T stopped by job control signal
t stopped by debugger during the tracing
W paging (not valid since the 2.6.xx kernel)
X dead (should never be seen)
Z defunct ("zombie") process, terminated but not reaped by
its parent
For BSD formats and when the stat keyword is used, additional
characters may be displayed:
< high-priority (not nice to other users)
N low-priority (nice to other users)
L has pages locked into memory (for real-time and custom IO)
s is a session leader
l is multi-threaded (using CLONE_THREAD, like NPTL pthreads
do)
+ is in the foreground process group
OBSOLETE SORT KEYS
These keys are used by the BSD O option (when it is used for sorting).
The GNU --sort option doesn't use these keys, but the specifiers
described below in the STANDARD FORMAT SPECIFIERS section. Note that
the values used in sorting are the internal values ps uses and not the
"cooked" values used in some of the output format fields (e.g. sorting
on tty will sort into device number, not according to the terminal name
displayed). Pipe ps output into the sort(1) command if you want to
sort the cooked values.
KEY LONG DESCRIPTION
c cmd simple name of executable
C pcpu cpu utilization
f flags flags as in long format F field
g pgrp process group ID
G tpgid controlling tty process group ID
j cutime cumulative user time
J cstime cumulative system time
k utime user time
m min_flt number of minor page faults
M maj_flt number of major page faults
n cmin_flt cumulative minor page faults
N cmaj_flt cumulative major page faults
o session session ID
p pid process ID
P ppid parent process ID
r rss resident set size
R resident resident pages
s size memory size in kilobytes
S share amount of shared pages
t tty the device number of the controlling tty
T start_time time process was started
U uid user ID number
u user user name
v vsize total VM size in KiB
y priority kernel scheduling priority
AIX FORMAT DESCRIPTORS
This ps supports AIX format descriptors, which work somewhat like the
formatting codes of printf(1) and printf(3). For example, the normal
default output can be produced with this: ps -eo "%p %y %x %c". The
NORMAL codes are described in the next section.
CODE NORMAL HEADER
%C pcpu %CPU
%G group GROUP
%P ppid PPID
%U user USER
%a args COMMAND
%c comm COMMAND
%g rgroup RGROUP
%n nice NI
%p pid PID
%r pgid PGID
%t etime ELAPSED
%u ruser RUSER
%x time TIME
%y tty TTY
%z vsz VSZ
STANDARD FORMAT SPECIFIERS
Here are the different keywords that may be used to control the output
format (e.g., with option -o) or to sort the selected processes with
the GNU-style --sort option.
For example: ps -eo pid,user,args --sort user
This version of ps tries to recognize most of the keywords used in
other implementations of ps.
The following user-defined format specifiers may contain spaces: args,
cmd, comm, command, fname, ucmd, ucomm, lstart, bsdstart, start.
Some keywords may not be available for sorting.
CODE HEADER DESCRIPTION
%cpu %CPU cpu utilization of the process in "##.#" format.
Currently, it is the CPU time used divided by the
time the process has been running
(cputime/realtime ratio), expressed as a
percentage. It will not add up to 100% unless
you are lucky. (alias pcpu).
%mem %MEM ratio of the process's resident set size to the
physical memory on the machine, expressed as a
percentage. (alias pmem).
ag_id AGID The autogroup identifier associated with a
process which operates in conjunction with the
CFS scheduler to improve interactive desktop
performance.
ag_nice AGNI The autogroup nice value which affects scheduling
of all processes in that group.
args COMMAND command with all its arguments as a string.
Modifications to the arguments may be shown. The
output in this column may contain spaces. A
process marked <defunct> is partly dead, waiting
to be fully destroyed by its parent. Sometimes
the process args will be unavailable; when this
happens, ps will instead print the executable
name in brackets. (alias cmd, command). See
also the comm format keyword, the -f option, and
the c option.
When specified last, this column will extend to
the edge of the display. If ps can not determine
display width, as when output is redirected
(piped) into a file or another command, the
output width is undefined (it may be 80,
unlimited, determined by the TERM variable, and
so on). The COLUMNS environment variable or
--cols option may be used to exactly determine
the width in this case. The w or -w option may
be also be used to adjust width.
blocked BLOCKED mask of the blocked signals, see signal(7).
According to the width of the field, a 32 or
64-bit mask in hexadecimal format is displayed,
unless the --signames option is used. (alias
sig_block, sigmask).
bsdstart START time the command started. If the process was
started less than 24 hours ago, the output format
is " HH:MM", else it is " Mmm:SS" (where Mmm is
the three letters of the month). See also
lstart, start, start_time, and stime.
bsdtime TIME accumulated cpu time, user + system. The display
format is usually "MMM:SS", but can be shifted to
the right if the process used more than 999
minutes of cpu time.
c C processor utilization. Currently, this is the
integer value of the percent usage over the
lifetime of the process. (see %cpu).
caught CAUGHT mask of the caught signals, see signal(7).
According to the width of the field, a 32 or 64
bits mask in hexadecimal format is displayed,
unless the --signames option is used. (alias
sig_catch, sigcatch).
cgname CGNAME display name of control groups to which the
process belongs.
cgroup CGROUP display control groups to which the process
belongs.
cgroupns CGROUPNS Unique inode number describing the namespace the
process belongs to. See namespaces(7).
class CLS scheduling class of the process. (alias policy,
cls). Field's possible values are:
- not reported
TS SCHED_OTHER
FF SCHED_FIFO
RR SCHED_RR
B SCHED_BATCH
ISO SCHED_ISO
IDL SCHED_IDLE
DLN SCHED_DEADLINE
? unknown value
cls CLS scheduling class of the process. (alias policy,
cls). Field's possible values are:
- not reported
TS SCHED_OTHER
FF SCHED_FIFO
RR SCHED_RR
B SCHED_BATCH
ISO SCHED_ISO
IDL SCHED_IDLE
DLN SCHED_DEADLINE
? unknown value
cmd CMD see args. (alias args, command).
comm COMMAND command name (only the executable name). The
output in this column may contain spaces. (alias
ucmd, ucomm). See also the args format keyword,
the -f option, and the c option.
When specified last, this column will extend to
the edge of the display. If ps can not determine
display width, as when output is redirected
(piped) into a file or another command, the
output width is undefined (it may be 80,
unlimited, determined by the TERM variable, and
so on). The COLUMNS environment variable or
--cols option may be used to exactly determine
the width in this case. The w or -w option may
be also be used to adjust width.
command COMMAND See args. (alias args, command).
cp CP per-mill (tenths of a percent) CPU usage. (see
%cpu).
cputime TIME cumulative CPU time, "[DD-]hh:mm:ss" format.
(alias time).
cputimes TIME cumulative CPU time in seconds (alias times).
cuc %CUC The CPU utilization of a process, including dead
children, in an extended "##.###" format. (see
also %cpu, c, cp, cuu, pcpu).
cuu %CUU The CPU utilization of a process in an extended
"##.###" format. (see also %cpu, c, cp, cuc,
pcpu).
drs DRS data resident set size, the amount of private
memory reserved by a process. It is also known
as DATA. Such memory may not yet be mapped to rss
but will always be included included in the vsz
amount.
egid EGID effective group ID number of the process as a
decimal integer. (alias gid).
egroup EGROUP effective group ID of the process. This will be
the textual group ID, if it can be obtained and
the field width permits, or a decimal
representation otherwise. (alias group).
eip EIP instruction pointer. As of kernel 4.9.xx will be
zeroed out unless task is exiting or being core
dumped.
esp ESP stack pointer. As of kernel 4.9.xx will be zeroed
out unless task is exiting or being core dumped.
etime ELAPSED elapsed time since the process was started, in
the form [[DD-]hh:]mm:ss.
etimes ELAPSED elapsed time since the process was started, in
seconds.
euid EUID effective user ID (alias uid).
euser EUSER effective user name. This will be the textual
user ID, if it can be obtained and the field
width permits, or a decimal representation
otherwise. The n option can be used to force the
decimal representation. (alias uname, user).
exe EXE path to the executable. Useful if path cannot be
printed via cmd, comm or args format options.
f F flags associated with the process, see the
PROCESS FLAGS section. (alias flag, flags).
fgid FGID filesystem access group ID. (alias fsgid).
fgroup FGROUP filesystem access group ID. This will be the
textual group ID, if it can be obtained and the
field width permits, or a decimal representation
otherwise. (alias fsgroup).
flag F see f. (alias f, flags).
flags F see f. (alias f, flag).
fname COMMAND first 8 bytes of the base name of the process's
executable file. The output in this column may
contain spaces.
fuid FUID filesystem access user ID. (alias fsuid).
fuser FUSER filesystem access user ID. This will be the
textual user ID, if it can be obtained and the
field width permits, or a decimal representation
otherwise.
gid GID see egid. (alias egid).
group GROUP see egroup. (alias egroup).
ignored IGNORED mask of the ignored signals, see signal(7).
According to the width of the field, a 32 or 64
bits mask in hexadecimal format is displayed,
unless the --signames option is used. (alias
sig_ignore, sigignore).
ipcns IPCNS Unique inode number describing the namespace the
process belongs to. See namespaces(7).
label LABEL security label, most commonly used for SELinux
context data. This is for the Mandatory Access
Control ("MAC") found on high-security systems.
lstart STARTED time the command started. This will be in the
form "DDD mmm HH:MM:SS YYY" unless changed by the
-D option.
lsession SESSION displays the login session identifier of a
process, if systemd support has been included.
luid LUID displays Login ID associated with a process.
lwp LWP light weight process (thread) ID of the
dispatchable entity (alias spid, tid). See tid
for additional information.
lxc LXC The name of the lxc container within which a task
is running. If a process is not running inside a
container, a dash ('-') will be shown.
machine MACHINE displays the machine name for processes assigned
to VM or container, if systemd support has been
included.
maj_flt MAJFLT The number of major page faults that have
occurred with this process.
min_flt MINFLT The number of minor page faults that have
occurred with this process.
mntns MNTNS Unique inode number describing the namespace the
process belongs to. See namespaces(7).
netns NETNS Unique inode number describing the namespace the
process belongs to. See namespaces(7).
ni NI nice value. This ranges from 19 (nicest) to -20
(not nice to others), see nice(1). (alias nice).
nice NI see ni.(alias ni).
nlwp NLWP number of lwps (threads) in the process. (alias
thcount).
numa NUMA The node associated with the most recently used
processor. A -1 means that NUMA information is
unavailable.
nwchan WCHAN address of the kernel function where the process
is sleeping (use wchan if you want the kernel
function name).
oom OOM Out of Memory Score. The value, ranging from 0 to
+1000, used to select task(s) to kill when memory
is exhausted.
oomadj OOMADJ Out of Memory Adjustment Factor. The value is
added to the current out of memory score which is
then used to determine which task to kill when
memory is exhausted.
ouid OWNER displays the Unix user identifier of the owner of
the session of a process, if systemd support has
been included.
pcpu %CPU see %cpu. (alias %cpu).
pending PENDING mask of the pending signals. See signal(7).
Signals pending on the process are distinct from
signals pending on individual threads. Use the m
option or the -m option to see both. According
to the width of the field, a 32 or 64 bits mask
in hexadecimal format is displayed, unless the
--signames option is used. (alias sig).
pgid PGID process group ID or, equivalently, the process ID
of the process group leader. (alias pgrp).
pgrp PGRP see pgid. (alias pgid).
pid PID a number representing the process ID (alias
tgid).
pidns PIDNS Unique inode number describing the namespace the
process belongs to. See namespaces(7).
pmem %MEM see %mem. (alias %mem).
policy POL scheduling class of the process. (alias class,
cls). Possible values are:
- not reported
TS SCHED_OTHER
FF SCHED_FIFO
RR SCHED_RR
B SCHED_BATCH
ISO SCHED_ISO
IDL SCHED_IDLE
DLN SCHED_DEADLINE
? unknown value
ppid PPID parent process ID.
pri PRI priority of the process. Higher number means
higher priority.
psr PSR processor that process last executed on.
pss PSS Proportional share size, the non-swapped physical
memory, with shared memory proportionally
accounted to all tasks mapping it.
rbytes RBYTES Number of bytes which this process really did
cause to be fetched from the storage layer.
rchars RCHARS Number of bytes which this task has caused to be
read from storage.
rgid RGID real group ID.
rgroup RGROUP real group name. This will be the textual group
ID, if it can be obtained and the field width
permits, or a decimal representation otherwise.
rops ROPS Number of read I/O operations—that is, system
calls such as read(2) and pread(2).
rss RSS resident set size, the non-swapped physical
memory that a task has used (in kilobytes).
(alias rssize, rsz).
rssize RSS see rss. (alias rss, rsz).
rsz RSZ see rss. (alias rss, rssize).
rtprio RTPRIO realtime priority.
ruid RUID real user ID.
ruser RUSER real user ID. This will be the textual user ID,
if it can be obtained and the field width
permits, or a decimal representation otherwise.
s S minimal state display (one character). See
section PROCESS STATE CODES for the different
values. See also stat if you want additional
information displayed. (alias state).
sched SCH scheduling policy of the process. The policies
SCHED_OTHER (SCHED_NORMAL), SCHED_FIFO, SCHED_RR,
SCHED_BATCH, SCHED_ISO, SCHED_IDLE and
SCHED_DEADLINE are respectively displayed as 0,
1, 2, 3, 4, 5 and 6.
seat SEAT displays the identifier associated with all
hardware devices assigned to a specific
workplace, if systemd support has been included.
sess SESS session ID or, equivalently, the process ID of
the session leader. (alias session, sid).
sgi_p P processor that the process is currently executing
on. Displays "*" if the process is not currently
running or runnable.
sgid SGID saved group ID. (alias svgid).
sgroup SGROUP saved group name. This will be the textual group
ID, if it can be obtained and the field width
permits, or a decimal representation otherwise.
sid SID see sess. (alias sess, session).
sig PENDING see pending. (alias pending, sig_pend).
sigcatch CAUGHT see caught. (alias caught, sig_catch).
sigignore IGNORED see ignored. (alias ignored, sig_ignore).
sigmask BLOCKED see blocked. (alias blocked, sig_block).
size SIZE approximate amount of swap space that would be
required if the process were to dirty all
writable pages and then be swapped out. This
number is very rough!
slice SLICE displays the slice unit which a process belongs
to, if systemd support has been included.
spid SPID see lwp. (alias lwp, tid).
stackp STACKP address of the bottom (start) of stack for the
process.
start STARTED time the command started. If the process was
started less than 24 hours ago, the output format
is "HH:MM:SS", else it is " Mmm dd" (where Mmm
is a three-letter month name). See also
bsdstart, start, start_time, and stime.
start_time START starting time or date of the process. Only the
year will be displayed if the process was not
started the same year ps was invoked, or "MmmDD"
if it was not started the same day, or "HH:MM"
otherwise. See also bsdstart, start, lstart, and
stime.
stat STAT multi-character process state. See section
PROCESS STATE CODES for the different values
meaning. See also s and state if you just want
the first character displayed.
state S see s. (alias s).
stime STIME see start_time. (alias start_time).
suid SUID saved user ID. (alias svuid).
supgid SUPGID group ids of supplementary groups, if any. See
getgroups(2).
supgrp SUPGRP group names of supplementary groups, if any. See
getgroups(2).
suser SUSER saved user name. This will be the textual user
ID, if it can be obtained and the field width
permits, or a decimal representation otherwise.
(alias svuser).
svgid SVGID see sgid. (alias sgid).
svuid SVUID see suid. (alias suid).
sz SZ size in physical pages of the core image of the
process. This includes text, data, and stack
space. Device mappings are currently excluded;
this is subject to change. See vsz and rss.
tgid TGID a number representing the thread group to which a
task belongs (alias pid). It is the process ID
of the thread group leader.
thcount THCNT see nlwp. (alias nlwp). number of kernel
threads owned by the process.
tid TID the unique number representing a dispatchable
entity (alias spid, tid). This value may also
appear as: a process ID (pid); a process group ID
(pgrp); a session ID for the session leader
(sid); a thread group ID for the thread group
leader (tgid); and a tty process group ID for the
process group leader (tpgid).
time TIME cumulative CPU time, "[DD-]HH:MM:SS" format.
(alias cputime).
timens TIMENS Unique inode number describing the namespace the
process belongs to. See namespaces(7).
times TIME cumulative CPU time in seconds (alias cputimes).
tname TTY controlling tty (terminal). (alias tt, tty).
tpgid TPGID ID of the foreground process group on the tty
(terminal) that the process is connected to, or
-1 if the process is not connected to a tty.
trs TRS text resident set size, the amount of physical
memory devoted to executable code.
tt TT controlling tty (terminal). (alias tname, tty).
tty TT controlling tty (terminal). (alias tname, tt).
ucmd CMD see comm. (alias comm, ucomm).
ucomm COMMAND see comm. (alias comm, ucmd).
uid UID see euid. (alias euid).
uname USER see euser. (alias euser, user).
unit UNIT displays unit which a process belongs to, if
systemd support has been included.
user USER see euser. (alias euser, uname).
userns USERNS Unique inode number describing the namespace the
process belongs to. See namespaces(7).
uss USS Unique set size, the non-swapped physical memory,
which is not shared with an another task.
utsns UTSNS Unique inode number describing the namespace the
process belongs to. See namespaces(7).
uunit UUNIT displays user unit which a process belongs to, if
systemd support has been included.
vsize VSZ see vsz. (alias vsz).
vsz VSZ virtual memory size of the process in KiB
(1024-byte units). Device mappings are currently
excluded; this is subject to change. (alias
vsize).
wbytes WBYTES Number of bytes which this process caused to be
sent to the storage layer.
wcbytes WCBYTES Number of cancelled write bytes.
wchan WCHAN name of the kernel function in which the process
is sleeping.
wchars WCHARS Number of bytes which this task has caused, or
shall cause to be written to disk.
wops WOPS Number of write I/O operations—that is, system
calls such as write(2) and pwrite(2).
ENVIRONMENT VARIABLES
The following environment variables could affect ps:
COLUMNS
Override default display width.
LINES
Override default display height.
PS_PERSONALITY
Set to one of posix, old, linux, bsd, sun, digital... (see section
PERSONALITY below).
CMD_ENV
Set to one of posix, old, linux, bsd, sun, digital... (see section
PERSONALITY below).
I_WANT_A_BROKEN_PS
Force obsolete command line interpretation.
LC_TIME
Date format.
LIBPROC_HIDE_KERNEL
Set this to any value to hide kernel threads normally displayed with
the -e option. This is equivalent to selecting --ppid 2 -p 2
--deselect instead. Also works in BSD mode.
PS_COLORS
Not currently supported.
PS_FORMAT
Default output format override. You may set this to a format string
of the type used for the -o option. The DefSysV and DefBSD values
are particularly useful.
POSIXLY_CORRECT
Don't find excuses to ignore bad "features".
POSIX2
When set to "on", acts as POSIXLY_CORRECT.
UNIX95
Don't find excuses to ignore bad "features".
_XPG
Cancel CMD_ENV=irix non-standard behavior.
In general, it is a bad idea to set these variables. The one exception
is CMD_ENV or PS_PERSONALITY, which could be set to Linux for normal
systems. Without that setting, ps follows the useless and bad parts of
the Unix98 standard.
PERSONALITY
390 like the OS/390 OpenEdition ps
aix like AIX ps
bsd like FreeBSD ps (totally non-standard)
compaq like Digital Unix ps
debian like the old Debian ps
digital like Tru64 (was Digital Unix, was OSF/1) ps
gnu like the old Debian ps
hp like HP-UX ps
hpux like HP-UX ps
irix like Irix ps
linux ***** recommended *****
old like the original Linux ps (totally non-standard)
os390 like OS/390 Open Edition ps
posix standard
s390 like OS/390 Open Edition ps
sco like SCO ps
sgi like Irix ps
solaris2 like Solaris 2+ (SunOS 5) ps
sunos4 like SunOS 4 (Solaris 1) ps (totally non-standard)
svr4 standard
sysv standard
tru64 like Tru64 (was Digital Unix, was OSF/1) ps
unix standard
unix95 standard
unix98 standard
BUGS
The fields bsdstart and start will only show the abbreviated month name
in English. The fields lstart and stime will show the abbreviated month
name in the configured locale but may exceed the column width due to
the different lengths for abbreviated month and day names across
languages.
SEE ALSO
pgrep(1), pstree(1), top(1), strftime(3), proc(5).
STANDARDS
This ps conforms to:
1 Version 2 of the Single Unix Specification
2 The Open Group Technical Standard Base Specifications, Issue 6
3 IEEE Std 1003.1, 2004 Edition
4 X/Open System Interfaces Extension [UP XSI]
5 ISO/IEC 9945:2003
AUTHOR
ps was originally written by Branko Lankester. Michael K. Johnson
re-wrote it significantly to use the proc filesystem, changing a few
things in the process. Michael Shields added the pid-list feature.
Charles Blake added multi-level sorting, the dirent-style library, the
device name-to-number mmaped database, the approximate binary search
directly on System.map, and many code and documentation cleanups.
David Mossberger-Tang wrote the generic BFD support for psupdate.
Albert Cahalan rewrote ps for full Unix98 and BSD support, along with
some ugly hacks for obsolete and foreign syntax.
Please send bug reports to procps@freelists.org. No subscription is
required or suggested.
procps-ng 2023-08-19 PS(1)
man ps 번역기 번역본
PS (1) 사용자 명령 PS (1)
이름
추신 - 현재 프로세스의 스냅 샷을보고하십시오.
개요
추신 [옵션]
설명
PS는 활성 프로세스 선택에 대한 정보를 표시합니다. 만약에
선택과 표시된 반복적 인 업데이트를 원합니다.
정보, 대신 상단을 사용하십시오.
이 버전의 PS는 여러 종류의 옵션을 수용합니다.
1 개의 UNIX 옵션은 그룹화 될 수 있으며 대시가 앞서야합니다.
그룹화 될 수 있으며 대시와 함께 사용해서는 안되는 2 BSD 옵션.
3 개의 GNU 긴 옵션. 두 개의 대시가 있습니다.
다른 유형의 옵션은 자유롭게 혼합 될 수 있지만 충돌은
나타나다. 기능적으로 동의어 옵션이 있습니다
많은 표준과 PS 구현으로 인해
추신은 호환됩니다.
기본적으로 PS는 동일한 효과적인 사용자 ID로 모든 프로세스를 선택합니다.
(euid = euid) 현재 사용자로서 동일한 터미널과 관련
Invoker로. 단자 인 프로세스 ID (PID = PID)를 표시합니다
프로세스 (tname = tty)와 관련하여 누적 된 CPU 시간
[dd-] hh : mm : ss 형식 (time = time) 및 실행 가능 이름 (ucmd = cmd).
출력은 기본적으로 분류되지 않습니다.
BSD 스타일 옵션을 사용하면 프로세스 상태 (STAT = STAT)가
기본 표시 및 명령 args (args = command)를 표시합니다.
실행 가능한 이름. PS_Format 환경으로이를 무시할 수 있습니다
변하기 쉬운. BSD 스타일 옵션을 사용하면 프로세스도 변경됩니다.
소유 한 다른 터미널 (TTYS)에 프로세스를 포함하도록 선택
당신에 의해; 또는 이것은 선택을 설정하는 것으로 설명 될 수 있습니다.
소유 한 프로세스를 제외하기 위해 필터링 된 모든 프로세스 세트입니다.
다른 사용자 또는 터미널에 있지 않습니다. 이러한 효과는 고려되지 않습니다
옵션이 아래에서 "동일"하는 것으로 설명되면 -M은 다음과 같습니다.
z 등과 동일하게 간주됩니다.
아래에 설명 된대로 프로세스 선택 옵션은 부가 적입니다. 그만큼
기본 선택이 폐기 된 다음 선택된 프로세스는
표시 할 프로세스 세트에 추가됩니다. 따라서 프로세스가 될 것입니다
주어진 선택 기준을 충족하는지 보여줍니다.
예
표준 구문을 사용하여 시스템의 모든 프로세스를 보려면 :
ps -e
ps -ef
ps -ef
PS -Ely
BSD 구문을 사용하여 시스템의 모든 프로세스를 보려면 :
PS 도끼
ps axu
프로세스 트리를 인쇄하려면 :
PS -EJH
ps axjf
스레드에 대한 정보를 얻으려면 :
추신
PS AXMS
보안 정보를 얻으려면 :
PS -EO EUSER, RUSER, SUSER, FUSER, F, COMM, 레이블
PS Axz
PS -EM
모든 프로세스가 사용자의 루트 (실제 및 유효 ID)로 실행되는 것을 보려면
체재:
ps -u 루트 -u 루트 u
사용자 정의 형식의 모든 프로세스를 보려면 다음과 같습니다.
ps -eo pid, tid, class, rtprio, ni, pri, psr, pcpu, stat, wchan : 14, comm
PS Axo STAT, EUID, RUID, TTY, TPGID, SESS, PGRP, PPID, PID, PCPU, COMM
ps -ao pid, tt, 사용자, fname, tmout, f, wchan
syslogd의 프로세스 ID 만 인쇄하십시오.
ps -c syslogd -o pid =
PID 42의 이름 만 인쇄하십시오.
PS -Q 42 -O Comm =
간단한 프로세스 선택
A Lift BSD 스타일의 "Only 자신"제한, 부과 된 제한
일부 BSD 스타일 ( "-"없음) 일 때 모든 프로세스 세트에서
옵션이 사용되거나 PS 성격 설정이 BSD와 유사 할 때.
이러한 방식으로 선택된 일련의 프로세스는 다음에
다른 방법으로 선택된 일련의 프로세스. 대체
설명이 옵션은 PS가 모든 프로세스를 나열하게한다는 것입니다.
터미널 (TTY)을 사용하거나 사용시 모든 프로세스를 나열합니다.
x 옵션과 함께.
-모든 프로세스를 선택합니다. -e와 동일합니다.
-세션 리더를 제외한 모든 프로세스를 선택하십시오 (GetSid (2) 참조)
그리고 터미널과 관련이없는 프로세스.
-D 세션 리더를 제외한 모든 프로세스를 선택하십시오.
-선택
지정된 프로세스를 제외한 모든 프로세스를 선택하십시오
조건 (선택을 무효화). -n과 동일합니다.
-E 모든 프로세스를 선택합니다. -a와 동일합니다.
g 정말, 심지어 세션 리더조차도. 이 깃발은 쓸모없고 5 월
향후 릴리스에서 중단됩니다. 일반적으로 암시됩니다
A 플래그, Sunos4에서 작동 할 때만 유용합니다.
성격.
-N 지정된 프로세스를 제외한 모든 프로세스를 선택하십시오.
조건 (선택을 무효화). -선택과 동일합니다.
t이 터미널과 관련된 모든 프로세스를 선택하십시오. 동일한
인수없이 t 옵션에.
R은 선택을 실행중인 프로세스로만 제한합니다.
x BSD 스타일 "TTY가 있어야합니다"제한을 들어 올립니다.
일부 BSD 스타일 일 때 모든 프로세스 세트에 부과
( "-"없음) 옵션이 사용되거나 PS 성격이있을 때
설정은 BSD와 같습니다. 이것에서 선택된 프로세스 세트
방식은 다른 사람이 선택한 일련의 프로세스에 추가됩니다.
수단. 다른 설명은이 옵션이 PS를 유발한다는 것입니다
귀하가 소유 한 모든 프로세스 (PS와 동일한 EUID)를 나열하거나 목록에 나열하십시오.
A 옵션과 함께 사용될 때 모든 프로세스.
목록 별 프로세스 선택
이 옵션은 빈 구분 된 형태의 단일 인수를 받아들입니다.
또는 쉼표로 구분 된 목록. 여러 번 사용할 수 있습니다. 을 위한
예 : ps -p "1 2"-p 3,4
123 -PID 123과 동일합니다.
+123 -SID 123과 동일합니다.
-123 프로세스 그룹 ID (PGID) 별 선택.
-C cmdlist
명령 이름으로 선택하십시오. 이것은 프로세스를 선택합니다
실행 가능한 이름은 CMDLIST에 제공됩니다. 참고 : 명령 이름은입니다
명령 줄과 동일하지 않습니다. Procps의 이전 버전
그리고 커널은이 명령 이름을 15 자로 잘라 냈습니다.
이 제한은 더 이상 두 가지 모두에 존재하지 않습니다. 당신이 의존한다면
15 자만 일치하면 더 이상 일치하지 않을 수 있습니다.
-g grplist
Real Group ID (RGID) 또는 이름으로 선택하십시오. 이것은 선택합니다
실제 그룹 이름 또는 ID가 grplist 목록에있는 프로세스.
실제 그룹 ID는 생성 한 사용자 그룹을 식별합니다.
프로세스, getgid (2)를 참조하십시오.
-g grplist
세션 또는 효과적인 그룹 이름으로 선택하십시오. 선택
세션은 많은 표준에 의해 지정되지만 선택합니다
효과적인 그룹은 여러 가지 논리적 행동입니다
운영 체제 사용. 이 PS는 세션별로 선택합니다
목록은 완전히 숫자입니다 (세션과 같이). 그룹 ID 번호
일부 그룹 이름도 지정된 경우에만 작동합니다. 보다
-S 및 -그룹 옵션.
-group grplist
Real Group ID (RGID) 또는 이름으로 선택하십시오. -g와 동일합니다.
-group grplist
효과적인 그룹 ID (EGID) 또는 이름으로 선택하십시오. 이것은 선택합니다
효과적인 그룹 이름 또는 ID가 grplist에있는 프로세스. 그만큼
효과적인 그룹 ID는 파일에 액세스하는 그룹을 설명합니다
권한은 프로세스에서 사용됩니다 (GeteGid (2) 참조). -g
옵션은 종종 -group의 대안입니다.
P 피드리스트
프로세스 ID별로 선택하십시오. -p 및 -pid와 동일합니다.
-P PIDLIST
PID로 선택하십시오. 프로세스 ID가있는 프로세스를 선택합니다
숫자는 pidlist로 나타납니다. p 및 -pid와 동일합니다.
-pid pidlist
프로세스 ID별로 선택하십시오. -p 및 p와 동일합니다.
-PPID PIDLIST
부모 프로세스 ID로 선택하십시오. 이것은 프로세스를 선택합니다
PIDLIST의 부모 프로세스 ID. 즉, 프로세스를 선택합니다
그것은 Pidlist에 등재 된 아이들의 아이들입니다.
Q pidlist
프로세스 ID (빠른 모드)별로 선택하십시오. -Q와 동일합니다
-Quick-Pid.
-Q PIDLIST
PID (빠른 모드)로 선택하십시오. 이것은 프로세스를 선택합니다
프로세스 ID 번호는 Pidlist에 나타납니다. 이 옵션으로 ps는 읽습니다
Pidlist에 나열된 PID에 필요한 정보 만
추가 필터링 규칙을 적용하지 않습니다. PID의 순서는입니다
분류되지 않고 보존. 추가 선택 옵션, 정렬
이 모드에서는 산림 유형 목록이 허용됩니다. 동일합니다
Q 및 -Quick-Pid.
-Quick-Pid Pidlist
프로세스 ID (빠른 모드)별로 선택하십시오. -Q 및 Q와 동일합니다.
-S Sesslist
세션 ID별로 선택하십시오. 이것은 세션으로 프로세스를 선택합니다
Sesslist에 지정된 ID.
-Sid Sesslist
세션 ID별로 선택하십시오. -s와 동일합니다.
t ttylist
TTY로 선택하십시오. -t 및 --tty와 거의 동일하지만 할 수도 있습니다
빈 TTYLIST와 함께 사용하여 터미널을 나타냅니다.
PS와 관련이 있습니다. t 옵션을 사용하는 것은 더 깨끗한 것으로 간주됩니다
빈 ttylist와 함께 t를 사용하는 것보다.
-t ttylist
TTY로 선택하십시오. 이것은 관련된 프로세스를 선택합니다
ttylist에 주어진 터미널. 터미널 (ttys 또는 화면
텍스트 출력)은 여러 형식으로 지정할 수 있습니다 : /dev /ttys1,
Ttys1, S1. 평원 "-"프로세스를 선택하는 데 사용될 수 있습니다.
모든 터미널에 첨부.
-tty ttylist
터미널별로 선택하십시오. -t 및 t와 동일합니다.
U userlist
효과적인 사용자 ID (EUID) 또는 이름으로 선택하십시오. 이것은 선택합니다
효과적인 사용자 이름 또는 ID가 사용자 목록에있는 프로세스. 그만큼
효과적인 사용자 ID는 파일에 액세스하는 사용자를 설명합니다
권한은 프로세스에서 사용됩니다 (Geteuid (2) 참조). 동일한
-u 및 -user로.
-U 사용자리스트
실제 사용자 ID (RUID) 또는 이름으로 선택하십시오. 프로세스를 선택합니다
실제 사용자 이름 또는 ID가 사용자리스트 목록에 있습니다. 진짜
사용자 ID 프로세스를 만든 사용자를 식별하고
getuid (2).
-U 사용자리스트
효과적인 사용자 ID (EUID) 또는 이름으로 선택하십시오. 이것은 선택합니다
효과적인 사용자 이름 또는 ID가 사용자 목록에있는 프로세스.
효과적인 사용자 ID는 파일에 액세스하는 사용자를 설명합니다.
권한은 프로세스에서 사용됩니다 (Geteuid (2) 참조). 동일한
U와 -user에게.
--user userlist
실제 사용자 ID (RUID) 또는 이름으로 선택하십시오. -U와 동일합니다.
--user userlist
효과적인 사용자 ID (EUID) 또는 이름으로 선택하십시오. -u와 동일합니다
유.
출력 형식 제어
이 옵션은 PS에 표시된 정보를 선택하는 데 사용됩니다. 그만큼
출력은 성격에 따라 다를 수 있습니다.
-C -L 옵션에 대한 다른 스케줄러 정보를 보여줍니다.
--문맥
SELINUX의 경우 보안 컨텍스트 형식을 표시합니다.
-f 전체 형식 목록을 수행합니다. 이 옵션은 많은 사람들과 결합 할 수 있습니다
추가 열을 추가하기위한 기타 유닉스 스타일 옵션. 또한
명령 인수가 인쇄됩니다. -L과 함께 사용하면
NLWP (스레드 수) 및 LWP (스레드 ID) 열은 다음과 같습니다.
추가. C 옵션, 형식 키워드 Args 및
형식 키워드 통신.
-F 추가 전체 형식. -f가 암시하는 -f 옵션을 참조하십시오.
-형식 형식
사용자 정의 형식. -o 및 o와 동일합니다.
J BSD 작업 제어 형식.
-j 작업 형식.
l 디스플레이 BSD 긴 형식.
-L 긴 형식. -y 옵션은 종종 이것에 유용합니다.
-m 보안 데이터 열을 추가합니다. z (selinux)와 동일합니다.
o 형식
사전로드 O (과부하). BSD O 옵션은 -o와 같이 작동 할 수 있습니다
(일부 공통 필드가 사전 정의 된 사용자 정의 출력 형식)
또는 정렬 순서를 지정하는 데 사용할 수 있습니다. 휴리스틱은 익숙합니다
이 옵션의 동작을 결정하십시오. 그것을 확인하기 위해
원하는 동작이 얻어지고 (정렬 또는 형식) 지정합니다
다른 방식으로 옵션 (예 : -o 또는 -sort). 언제
서식 옵션으로 사용되며 BSD와 동일합니다.
성격.
-O 형식
-o와 마찬가지로 일부 기본 열로 사전로드됩니다. 동일합니다
-o pid, 형식, 상태, tname, 시간, 명령 또는 -o pid, 형식, tname,
시간, cmd, 아래 -o를 참조하십시오.
o 형식
사용자 정의 형식을 지정합니다. -o 및 -format과 동일합니다.
-O 형식
사용자 정의 형식. 형식은 형태의 단일 인수입니다
빈 구분 또는 쉼표로 구분 된 목록으로
개별 출력 열을 지정하십시오. 인식 된 키워드는 다음과 같습니다
아래 표준 형식 지정자 섹션에 설명되어 있습니다.
헤더 이름이 바뀔 수 있습니다 (PS -o PID, RUSER = RealUser -o
comm = 명령) 원하는대로. 모든 열 헤더가 비어있는 경우 (PS
-o pid = -o comm =) 그러면 헤더 라인이 출력되지 않습니다.
넓은 헤더에 필요한만큼 열 폭이 증가합니다. 이것은 5 월입니다
WCHAN (ps -o pid, wchan = wide-와 같은 열을 넓히는 데 사용됩니다.
wchan -column -o comm). 명시적인 폭 컨트롤 (PS Opid,
WCHAN : 42, CMD)도 제공됩니다. ps -o pid = x의 동작,
comm = y는 성격에 따라 다릅니다. 출력은 하나의 열이라는 열일 수 있습니다
"x, comm = y"또는 두 개 "x"및 "y"라는 열이라는 열입니다. 다중 -O를 사용하십시오
의심스러운 경우 옵션. ps_format 환경 변수를 사용하십시오
원하는대로 기본값을 지정합니다. defsysv와 defbsd는 매크로입니다
기본 UNIX 또는 BSD 열을 선택하는 데 사용될 수 있습니다.
-p PSR을 보여주는 열을 추가하십시오.
S 디스플레이 신호 형식.
사용자 지향 형식을 표시합니다.
V 가상 메모리 형식 표시.
X 레지스터 형식.
-깃발을 보여주지 않습니다. ADDR 대신 RSS를 표시하십시오. 이 옵션은 할 수 있습니다
-l과 함께 사용됩니다.
z 보안 데이터 열을 추가합니다. -m (selinux의 경우)과 동일합니다.
출력 수정 자
c 진정한 명령 이름을 보여줍니다. 이것은 이름에서 파생됩니다
ARGV 값이 아닌 실행 파일. 명령
따라서 인수와 그들에 대한 수정은 표시되지 않습니다.
이 옵션은 Args 형식 키워드를 효과적으로
COMM 형식 키워드; -f 형식 옵션에 유용합니다
다양한 BSD 스타일 형식 옵션으로 일반적으로
명령 인수를 표시합니다. -f 옵션, 형식을 참조하십시오
키워드 Args 및 형식 키워드 통신.
-컬러 n
화면 너비를 설정합니다.
-컬럼 n
화면 너비를 설정합니다.
-축적
죽은 아동 프로세스 데이터를 포함하십시오 (부모와의 합계).
-D 형식
lstart 필드의 날짜 형식을 형식으로 설정하십시오. 이 형식
Strftime (3)에 의해 구문 분석되며 최대 24 명이어야합니다.
열이 잘못 정렬되지 않는 문자.
-날짜 형식 형식
-d와 동일합니다.
E 명령 후에 환경을 보여줍니다.
F ASCII ART 프로세스 계층 구조 (숲).
--숲
ASCII 아트 프로세스 트리.
H 헤더 없음. (또는 BSD 성격의 화면 당 하나의 헤더).
H 옵션은 문제가됩니다. 표준 BSD PS는이 옵션을 사용합니다
출력의 각 페이지에 헤더를 인쇄하려면 이전 Linux PS
이 옵션을 사용하여 헤더를 완전히 비활성화합니다. 이 버전의
PS는 헤더를 인쇄하지 않는 Linux 사용을 따릅니다.
BSD 성격이 선택 되었으며이 경우
출력의 각 페이지의 헤더. 전류에 관계없이
성격, 당신은 긴 옵션을 사용할 수 있습니다 -헤더와
-각 페이지 각 페이지 인쇄 헤더를 활성화하거나 비활성화 할 수있는 비 헤더
헤더는 각각 전적으로.
-H 프로세스 계층 구조 (숲) 표시.
-헤더
출력 한 페이지 당 하나의 헤더 라인을 반복하십시오.
k 사양 정렬 순서를 지정합니다. 정렬 구문입니다
[+|-] 키 [, [+|-] 키 [, ...]]. 에서 멀티 레터 키를 선택하십시오
표준 형식 지정자 섹션. "+"는 그 이후로 선택 사항입니다
기본 방향이 수치 또는 사전화가 증가하고 있습니다
주문하다. -sort와 동일합니다.
예 :
PS jaxkuid, -ppid,+pid
PS Axk Comm O Comm, Args
PS KSTART_TIME -EF
-라인 n
화면 높이를 설정하십시오.
n wchan 및 사용자의 숫자 출력 (모든 유형의 UID 포함
그리고 gid).
-무선
헤더 라인을 전혀 인쇄하지 마십시오. -아니오 헤드는 이것에 대한 별칭입니다
옵션.
o 주문
정렬 순서 (과부하). BSD O 옵션은 -o와 같이 작동 할 수 있습니다
(일부 공통 필드가 사전 정의 된 사용자 정의 출력 형식)
또는 정렬 순서를 지정하는 데 사용할 수 있습니다. 휴리스틱은 익숙합니다
이 옵션의 동작을 결정하십시오. 그것을 확인하기 위해
원하는 동작이 얻어지고 (정렬 또는 형식) 지정합니다
다른 방식으로 옵션 (예 : -o 또는 -sort).
정렬의 경우 쓸모없는 BSD O 옵션 구문입니다
o [+|-] k1 [, [+|-] k2 [, ...]]. 프로세스 목록을 주문합니다
의 시퀀스로 지정된 다단계 정렬에 따라
1 레터 짧은 키 K1, K2, ... 쓸모없는 정렬에 설명 된
아래 키 섹션. "+"는 현재 선택 사항입니다
키에서 기본 방향을 다시 말하지만 도움이 될 수 있습니다.
o 정렬을 O 형식과 구별합니다. "-"가 반전됩니다
키에서만 방향으로 만 있습니다.
--rows n
화면 높이를 설정하십시오.
S Dead Child의 CPU 사용과 같은 일부 정보를 요약
부모로 처리합니다. 이것은 검사에 유용합니다
부모 프로세스가 단기간에서 반복적으로 포크하는 시스템
일을 할 아이들.
-소트 사양
정렬 순서를 지정합니다. 정렬 구문입니다
[+|-] 키 [, [+|-] 키 [, ...]]. 에서 멀티 레터 키를 선택하십시오
표준 형식 지정자 섹션. "+"는 그 이후로 선택 사항입니다
기본 방향이 수치 또는 사전화가 증가하고 있습니다
주문하다. k와 동일합니다. 예를 들면 : ps jax ---sort = uid, -ppid,
+PID
-서명
약식 신호 이름을 사용하여 신호 마스크 표시를하고 확장합니다.
Collumn. 열 폭에 모든 신호가 표시 될 수없는 경우
열은 플러스 "+"로 끝납니다. 하이픈 만있는 열
신호가 없습니다.
w 넓은 출력. 무제한 너비 에이 옵션을 두 번 사용하십시오.
-W 넓은 출력. 무제한 너비 에이 옵션을 두 번 사용하십시오.
-width n
화면 너비를 설정합니다.
스레드 디스플레이
H는 마치 프로세스 인 것처럼 스레드를 보여줍니다.
-L 쇼 스레드, 아마도 LWP 및 NLWP 열이 있습니다.
M은 프로세스 후 스레드를 표시합니다.
-M 프로세스 후 스레드가 표시됩니다.
-T 스레드 쇼 스레드, 아마도 SPID 열이 있습니다.
기타 정보
-헬프 섹션
도움말 메시지를 인쇄하십시오. 섹션 인수는 그 중 하나 일 수 있습니다
단순, 목록, 출력, 스레드, 기타 또는 모든 것. 논쟁은 할 수 있습니다
다음과 같이 밑줄이 그어진 편지 중 하나로 단축됩니다.
s | l | o | t | m | a.
-인쇄 디버깅 정보.
l 모든 형식 지정자를 나열합니다.
v 버전의 Procps를 인쇄하십시오.
-v 버전의 Procps를 인쇄합니다.
--버전
Procps-NG 버전을 인쇄하십시오.
메모
이 PS는 /Proc에서 가상 파일을 읽어서 작동합니다. 이 PS는 그렇지 않습니다
kmem을 설정하거나 실행할 권한이 있어야합니다. 이것을주지 마십시오
추신 : 특별한 권한.
CPU 사용량은 현재 소비 된 시간의 백분율로 표현됩니다.
과정의 전체 수명 동안 실행됩니다. 이것은 이상적이지 않습니다.
그리고 그것은 ps가 그렇지 않으면 준수하는 표준을 준수하지 않습니다.
CPU 사용량은 정확히 100%를 추가 할 가능성이 낮습니다.
크기 및 RSS 필드는
페이지 테이블, 커널 스택, 구조물 Thread_info 및 Struct
task_struct. 이것은 일반적으로 항상 20 kib의 메모리입니다.
거주자. 크기는 프로세스의 가상 크기입니다 (Code+Data+Stack).
<fulect>로 표시된 프로세스는 죽은 프로세스입니다 (소위 "좀비")
부모가 제대로 파괴하지 않았기 때문에 남아 있습니다.
이 과정은 부모가 프로세스하는 경우 init (8)에 의해 파괴됩니다.
출구.
사용자 이름의 길이가 디스플레이 너비보다 큰 경우
열, 사용자 이름이 잘립니다. -o 및 -o 형식을 참조하십시오
길이를 사용자 정의하는 옵션.
ps -aux와 같은 명령 옵션은
두 가지 다른 표준의 혼란. Posix와 Unix에 따르면
표준, 위 명령은 모든 프로세스를 TTY로 표시하도록 요청합니다.
(일반적으로 사용자가 실행중인 명령) 추가 소유의 모든 프로세스
x라는 사용자. 해당 사용자가 존재하지 않으면 PS는 귀하를 가정합니다.
실제로 "PS Aux"를 의미했습니다.
프로세스 플래그
이 값의 합은 "F"열에 표시됩니다.
플래그 출력 지정자가 제공합니다.
1 포크이지만 실행하지 않았습니다
4 사용 된 슈퍼 사용자 권한
프로세스 상태 코드
S, STAT 및 상태 출력의 다른 값은 다음과 같습니다.
지정자 (헤더 "STAT"또는 "S")는 상태를 설명하기 위해 표시됩니다.
과정 :
D 무정 수면 (보통 IO)
나는 커널 스레드를 공전합니다
r 실행 또는 실행 가능 (실행 대기열)
S 인터럽트 수면 (이벤트가 완료되기를 기다리고 있음)
작업 관리 신호에 의해 중지되었습니다
t는 추적 중에 디버거로 멈췄습니다
W 페이징 (2.6.xx 커널 이후 유효하지 않음)
X Dead (절대 볼 수 없어야합니다)
Z deflected ( "Zombie") 프로세스, 종료되었지만 거두지 않습니다
부모
BSD 형식 및 STAT 키워드를 사용하는 경우 추가
문자가 표시 될 수 있습니다.
<우선 순위 (다른 사용자에게는 좋지 않음)
n 우선 순위 (다른 사용자에게 좋음)
l 메모리에 잠겨있는 페이지가 있습니다 (실시간 및 사용자 정의 IO)
S는 세션 리더입니다
L은 다중 스레드입니다 (nptl pthreads와 같이 clone_thread를 사용합니다
하다)
+는 전경 프로세스 그룹에 있습니다
쓸모없는 정렬 키
이 키는 BSD O 옵션 (정렬에 사용될 때)에서 사용됩니다.
GNU -SORT 옵션은 이러한 키를 사용하지 않지만 지정자는
표준 형식 지정자 섹션에 아래에 설명되어 있습니다. 주목하십시오
정렬에 사용 된 값은 PS가 사용하는 내부 값이며
일부 출력 형식 필드에 사용되는 "요리 된"값 (예 : 정렬
TTY는 터미널 이름에 따라가 아니라 장치 번호로 정렬됩니다.
표시). 파이프 PS는 정렬 (1) 명령으로 출력하여 원하는 경우
요리 된 값을 정렬하십시오.
주요 긴 설명
C CMD 실행 파일의 간단한 이름
C PCPU CPU 사용
f 플래그는 긴 형식 F 필드로 플래그입니다
G PGRP 프로세스 그룹 ID
G TPGID 제어 TTY 프로세스 그룹 ID
J Cutime 누적 사용자 시간
J cstime 누적 시스템 시간
케이 Utime 사용자 시간
m Min_flt 사소한 페이지 결함 수
m maj_flt 주요 페이지 결함 수
n cmin_flt 누적 사소한 페이지 결함
n CMAJ_FLT 누적 주요 페이지 결함
o 세션 세션 ID
P PID 프로세스 ID
pPID 부모 프로세스 ID
R RSS 거주자 세트 크기
R 거주자 페이지
킬로바이트의 S 크기 메모리 크기
공유 페이지의 공유 금액
ttty 제어 tty의 장치 번호
t start_time 시간 프로세스가 시작되었습니다
UID 사용자 ID 번호
U 사용자 이름
v vsize kib의 총 VM 크기
y 우선 순위 커널 스케줄링 우선 순위
AIX 형식 설명자
이 PS는 AIX 형식 설명자를 지원하며 다소 작동합니다.
printf (1) 및 printf (3)의 서식 코드. 예를 들어, 정상입니다
다음과 같이 기본 출력을 생성 할 수 있습니다. PS -EO " %P %y %X %C". 그만큼
일반 코드는 다음 섹션에 설명되어 있습니다.
코드 일반 헤더
%C PCPU %CPU
%G 그룹 그룹
%P PPID PPID
%u 사용자 사용자
%args 명령
%C Comm 명령
%g rgroup rgroup
%n 좋은 ni
%p PID PID
%r pgid pgid
%t etime 경과
%u ruser ruser
%x 시간 시간
%y tty tty
%Z VSZ VSZ
표준 형식 지정자
다음은 출력을 제어하는 데 사용될 수있는 다양한 키워드입니다.
형식 (예 : 옵션 -O) 또는 선택한 프로세스를 다음과 같이 정렬합니다.
GNU 스타일-스토어 옵션.
예를 들면 : ps -eo pid, user, args -sort user
이 버전의 PS는 사용 된 대부분의 키워드를 인식하려고합니다.
PS의 다른 구현.
다음 사용자 정의 형식 지정자는 공백을 포함 할 수 있습니다 : Args,
CMD, COMM, COMMANT, FNAME, UCMD, UCOMM, LSTART, BSDSTART, START.
일부 키워드는 정렬 할 수 없습니다.
코드 헤더 설명
"##.#"형식에서 프로세스의 %CPU %CPU CPU 활용.
현재 사용되는 CPU 시간은
프로세스가 실행되었습니다
(cputime/Realtime Ratio), a로 표현됩니다
백분율. 그렇지 않으면 100%까지 추가되지 않습니다
당신은 운이 좋다. (별칭 PCPU).
프로세스의 상주 세트 크기의 %mem %mem 비율
기계의 물리적 메모리는 a로 표현됩니다
백분율. (별칭 PMEM).
ag_id agid a
The와 함께 작동하는 프로세스
대화식 데스크탑을 개선하기위한 CFS 스케줄러
성능.
ag_nice agni 자동 그룹의 좋은 값은 스케줄링에 영향을 미칩니다
해당 그룹의 모든 프로세스 중.
문자열로서 모든 인수를 가진 Args 명령 명령.
인수에 대한 수정이 표시 될 수 있습니다. 그만큼
이 열의 출력에는 공백이 포함될 수 있습니다. 에이
<fulect>로 표시된 프로세스는 부분적으로 죽었고 기다리고 있습니다
부모에 의해 완전히 파괴됩니다. 때때로
프로세스 Args는 사용할 수 없습니다. 이렇게하면
PS는 대신 실행 파일을 인쇄합니다
괄호 안의 이름. (별명 CMD, 명령). 보다
또한 Comm Format 키워드, -f 옵션 및
C 옵션.
마지막으로 지정되면이 열은 연장됩니다
디스플레이의 가장자리. PS를 결정할 수없는 경우
출력이 리디렉션 될 때와 같이 디스플레이 너비 (파이프) 파일 또는 다른 명령으로
출력 폭은 정의되지 않았습니다 (80 일 수 있습니다.
변수라는 용어에 의해 결정되는 무제한
곧). 열 환경 변수 또는
-Cols 옵션을 사용하여 정확하게 결정할 수 있습니다
이 경우 너비. w 또는 -w 옵션은 할 수 있습니다
또한 너비를 조정하는 데 사용됩니다.
차단 된 차단 된 신호의 차단 마스크는 신호 (7)을 참조하십시오.
필드의 너비에 따르면, 32 또는
16 진 형식의 64 비트 마스크가 표시됩니다.
-서명 옵션이 사용되지 않는 한. (별명
SIG_BLOCK, SIGMASK).
bsdstart 시작 시간 명령이 시작되었습니다. 과정이라면
출력 형식 인 24 시간 이내에 시작되었습니다
"hh : mm", 그렇지 않으면 "mmm : ss"입니다 (Mmm은 어디에
달의 세 글자). 참조하십시오
lstart, start, start_time 및 stime.
BSDTIME 시간 누적 CPU 시간, 사용자 + 시스템. 디스플레이
형식은 일반적으로 "mmm : ss"이지만 이동할 수 있습니다
프로세스가 999 이상을 사용한 경우 권리
CPU 시간의 분.
C C 프로세서 활용. 현재 이것은입니다
정수 값
프로세스의 수명. ( %CPU 참조).
잡힌 신호의 잡힌 마스크는 신호 (7)을 참조하십시오.
필드의 너비에 따르면 32 또는 64
16 진수 형식의 비트 마스크가 표시됩니다.
-서명 옵션이 사용되지 않는 한. (별명
SIG_CATCH, SIGCATCH).
cgname cgname 제어 그룹의 이름 표시 이름
프로세스에 속합니다.
CGROUP CGROUP 프로세스가있는 제어 그룹을 표시합니다
속한다.
CGROUPNS CGROUPNS 네임 스페이스를 설명하는 고유 한 inode 번호
프로세스는 다음과 같습니다. 네임 스페이스 (7)를 참조하십시오.
프로세스의 클래스 CLS 스케줄링 클래스. (별명 정책,
CLS). 필드의 가능한 값은 다음과 같습니다.
-보고되지 않았습니다
ts sched_other
ff sched_fifo
rr sched_rr
b sched_batch
iso sched_iso
idl sched_idle
dln sched_deadline
? 알 수없는 가치
프로세스의 CLS CLS 스케줄링 클래스. (별명 정책,
CLS). 필드의 가능한 값은 다음과 같습니다.
-보고되지 않았습니다
ts sched_other
ff sched_fifo
rr sched_rr
b sched_batch
iso sched_iso
idl sched_idle
dln sched_deadline
? 알 수없는 가치
CMD CMD는 Args를 참조하십시오. (별명 args, 명령).
comm 명령 명령 이름 (실행 파일 이름 만). 그만큼
이 열의 출력에는 공백이 포함될 수 있습니다. (별명
UCMD, UCOMM). Args 형식 키워드도 참조하십시오.
-f 옵션 및 C 옵션.
마지막으로 지정되면이 열은 연장됩니다
디스플레이의 가장자리. PS를 결정할 수없는 경우
출력이 리디렉션 될 때와 같이 디스플레이 너비
(파이프) 파일 또는 다른 명령으로
출력 폭은 정의되지 않았습니다 (80 일 수 있습니다.
변수라는 용어에 의해 결정되는 무제한
곧). 열 환경 변수 또는
-Cols 옵션을 사용하여 정확하게 결정할 수 있습니다
이 경우 너비. w 또는 -w op 5 월
또한 너비를 조정하는 데 사용됩니다.
명령 명령은 Args를 참조하십시오. (별명 args, 명령).
CP CP MILL (1 분의 1 백분율) CPU 사용. (보다
%CPU).
cputime 시간 누적 cpu 시간, "[dd-] hh : mm : ss"형식.
(별명 시간).
CPUTIMES 시간 누적 CPU 시간은 초 (별칭 시간)입니다.
CUC %CUC 사망을 포함한 프로세스의 CPU 활용
확장 된 "##. ###"형식의 어린이. (보다
또한 %CPU, C, CP, CUU, PCPU).
cuu %cuu 확장에서 프로세스의 CPU 활용
"##. ###"형식. (또한 %CPU, C, CP, CUC 참조
PCPU).
DRS DRS 데이터 거주 세트 크기, 개인 금액
프로세스에 의해 메모리가 예약되어 있습니다. 또한 알려져 있습니다
데이터로. 이러한 메모리는 아직 RSS에 매핑되지 않을 수 있습니다
그러나 항상 VSZ에 포함됩니다
양.
egid egid 효과적인 그룹 ID 프로세스의 수
십진 정수. (별명 GID).
프로세스의 EGROUP EGROUP 효과적인 그룹 ID. 이것은 될 것입니다
텍스트 그룹 ID를 얻을 수있는 경우
필드 너비는 허용 또는 소수점입니다
그렇지 않으면 표현. (별명 그룹).
EIP EIP 명령어 포인터. Kernel 4.9.xx가있을 것입니다
작업이 종료되거나 핵심이 아니라면 제로가 없습니다
버려졌다.
esp esp 스택 포인터. 커널 4.9.xx는 제로화됩니다
작업이 종료되거나 핵심이 버려지지 않는 한.
공정이 시작된 이후에 ETIME가 경과 한 시간
형태 [[dd-] hh :] mm : ss.
Etimes는 과정이 시작된 이후 경과 시간이 경과했습니다.
초.
EUID EUID 효과적인 사용자 ID (기타 UID).
EUSER EUSER 효과적인 사용자 이름. 이것은 텍스트가 될 것입니다
사용자 ID, 획득 할 수있는 경우 필드
너비 허가 또는 소수점 표현
그렇지 않으면. n 옵션은
소수점 표현. (별명 une, 사용자).
exe exe exe 경로. 경로가 될 수없는 경우 유용합니다
CMD, Comm 또는 Args 형식 옵션을 통해 인쇄됩니다.
프로세스와 관련된 플래그는 참조하십시오
프로세스 플래그 섹션. (별명 플래그, 플래그).
FGID FGID 파일 시스템 액세스 그룹 ID. (별명 FSGID).
FGROUP FGROUP 파일 시스템 액세스 그룹 ID. 이것은 될 것입니다
텍스트 그룹 ID를 얻을 수있는 경우
필드 너비 허가 또는 소수점 표현
그렇지 않으면. (별명 FSGroup).
플래그 F 참조 f. (별명 F, 플래그).
깃발 f 참조 f. (별명 F, 플래그).
fname 명령 프로세스의 기본 이름의 8 바이트
실행 파일. 이 열의 출력은 5 월입니다
공간이 포함되어 있습니다.
FUID FUID 파일 시스템 액세스 사용자 ID. (별명 fsuid).
퓨저 퓨저 파일 시스템 액세스 사용자 ID. 이것은 될 것입니다
텍스트 사용자 ID를 얻을 수있는 경우
필드 너비 허가 또는 소수점 표현
그렇지 않으면.
정말 봅니다. (별명 이집트).
그룹 그룹은 eGroup을 참조하십시오. (별명 egroup).
무시 된 신호의 무시 된 마스크는 무시됩니다 (신호) (7).
필드의 너비에 따르면 32 또는 64
16 진수 형식의 비트 마스크가 표시됩니다.
-서명 옵션이 사용되지 않는 한. (별명
SIG_IGNORE, SIGIGNORE).
IPCNS IPCNS 네임 스페이스를 설명하는 고유 한 inode 번호
프로세스는 다음과 같습니다. 네임 스페이스 (7)를 참조하십시오.
Selinux에 가장 일반적으로 사용되는 레이블 레이블 보안 레이블
컨텍스트 데이터. 이것은 필수 액세스를위한 것입니다
보안 시스템에서 찾은 Control ( "Mac").
lstart는 명령이 시작된 시간을 시작했습니다. 이것은 안에있을 것입니다
"ddd mmm hh : mm : ss yyy"를 형성하십시오
-D 옵션.
LSESSION 세션은 a의 로그인 세션 식별자를 표시합니다
SystemD 지원이 포함 된 경우 프로세스.
LUID LUID는 프로세스와 관련된 로그인 ID를 표시합니다.
LWP LWP 경량 공정 (스레드) ID
파견 가능한 엔티티 (별명 Spid, TID). TID를 참조하십시오
추가 정보.
LXC LXC 작업이있는 LXC 컨테이너의 이름
실행 중입니다. 프로세스가 a 내부에서 실행되지 않는 경우
컨테이너, 대시 ( '-')가 표시됩니다.
기계 기계는 지정된 프로세스의 기계 이름을 표시합니다
VM 또는 컨테이너에 SystemD 지원이있는 경우
포함.
maj_flt majflt 주요 페이지 결함 수
이 과정에서 발생했습니다.
min_flt minflt가있는 작은 페이지 결함 수
이 과정에서 발생했습니다.
네임 스페이스를 설명하는 mntns mntns 고유 한 inode 번호
프로세스는 다음과 같습니다. 네임 스페이스 (7)를 참조하십시오.
네임 스페이스를 설명하는 Netns netns 고유 한 inode 번호
프로세스는 다음과 같습니다. 네임 스페이스 (7)를 참조하십시오.
ni ni 좋은 가치. 이것은 19 (가장 좋은)에서 -20입니다
(다른 사람에게는 좋지 않음), Nice (1) 참조. (별명이 좋다).
좋은 봅시다 (at).
프로세스에서 NLWP NLWP LWP (스레드) 수. (별명
thcount).
Numa Numa 가장 최근에 사용 된 노드
프로세서. -1은 NUMA 정보가 있음을 의미합니다
없는.
프로세스가있는 커널 기능의 nwchan wchan 주소
자고 있습니다 (커널을 원한다면 wchan을 사용하십시오
함수 이름).
OOM OOM 메모리 점수. 값은 0에서
+1000, 메모리시 죽일 작업을 선택하는 데 사용됩니다
소진되었습니다.
메모리 조정 계수를 벗어난 OomAdj OomAdj. 가치는입니다
메모리 점수의 전류에 추가
그런 다음 언제 죽일 작업을 결정하는 데 사용되었습니다
메모리가 소진되었습니다.
OUID 소유자는 소유자의 UNIX 사용자 식별자를 표시합니다.
SystemD 지원이있는 경우 프로세스의 세션
포함되었습니다.
PCPU %CPU 참조 %CPU. (별칭 %CPU).
보류중인 신호의 보류중인 마스크. 신호 (7)를 참조하십시오.
프로세스에 대한 신호는 구별됩니다
개별 스레드에 대한 신호. m을 사용하십시오
옵션 또는 -m 옵션을 모두 볼 수 있습니다. 에 따라
필드의 너비에 32 또는 64 비트 마스크
16 진수 형식으로 표시되지 않는 한
-서명 옵션이 사용됩니다. (별명 sig).
PGID PGID 프로세스 그룹 ID 또는 동등하게 프로세스 ID
프로세스 그룹 리더의. (별칭 PGRP).
PGRP PGRP PGID를 참조하십시오. (별칭 pgid).
PID PID 프로세스 ID (별칭
tgid).
PIDNS PIDNS 네임 스페이스를 설명하는 고유 한 inode 번호
프로세스는 다음과 같습니다. 네임 스페이스 (7)를 참조하십시오.
pmem %mem 참조 %mem. (별칭 %mem).
프로세스의 정책 pol 스케줄링 클래스. (별명 클래스,
CLS). 가능한 값은 다음과 같습니다.
-보고되지 않았습니다
ts sched_other
ff sched_fifo
rr sched_rr
b sched_batch
iso sched_iso
idl sched_idle
dln sched_deadline
? 알 수없는 가치
PPID PPID 상위 프로세스 ID.
프로세스의 PRI PRI 우선 순위. 더 높은 수는
우선 순위가 높습니다.
PSR PSR 프로세서 프로세스가 마지막으로 실행되었습니다.
PSS PSS 비례 주식 크기, 비가운 물리적 물리적
비례 적으로 공유 메모리가있는 메모리
모든 작업을 설명했습니다.
rbytes rbytes이 프로세스가 실제로했던 바이트 수
스토리지 레이어에서 가져 오는 원인.
이 작업이 발생한 바이트 수
스토리지에서 읽으십시오.
RGID RGID 실제 그룹 ID.
rgroup rgroup 실제 그룹 이름. 이것은 텍스트 그룹이 될 것입니다
ID, 획득 할 수 있고 필드 너비가
그렇지 않으면 허가 또는 소수점 표현.
ROPS ROPS READ I/O 작업, 즉 시스템
Read (2) 및 Pread (2)와 같은 호출.
RSS RSS 거주자 세트 크기, 비가운 물리적 물리적
작업이 사용한 메모리 (킬로 바이트).
(별명 RSSIZE, RSZ).
RSSIZE RSS는 RSS를 참조하십시오. (별명 RSS, RSZ).
RSZ는 RSS를 참조하십시오. (별명 RSS, RSSIZE).
RTPRIO RTPRIO 실시간 우선 순위.
Caid Ruid ruid utid id.
Ruser Ruser Real 사용자 ID. 이것은 텍스트 사용자 ID가 될 것입니다.
그것을 얻을 수 있고 필드 너비
그렇지 않으면 허가 또는 소수점 표현.
S S 최소 상태 디스플레이 (한 문자). 보다
섹션 프로세스 스테이트 코드는 다른 것입니다
값. 추가를 원한다면 STAT도 참조하십시오
정보가 표시됩니다. (별칭 상태).
프로세스의 일정 정책 정책. 정책
sched_other (sched_normal), sched_fifo, sched_rr,
sched_batch, sched_iso, sched_idle 및
sched_deadline은 각각 0으로 표시됩니다.
1, 2, 3, 4, 5 및 6.
시트 시트는 모두와 관련된 식별자를 표시합니다
특정에 할당 된 하드웨어 장치
SystemD 지원이 포함 된 경우 직장.
Sess Sess 세션 ID 또는 동등하게 프로세스 ID
세션 리더. (별명 세션, SID).
SGI_P P 프로세서 프로세스가 현재 실행 중입니다
에. 프로세스가 현재없는 경우 "*"를 표시합니다
달리기 또는 달리기.
저장된 그룹 ID 스키드 저장. (별명 svgid).
sgroup sgroup 저장 그룹 이름. 이것은 텍스트 그룹이 될 것입니다
ID, 획득 할 수 있고 필드 너비가
그렇지 않으면 허가 또는 소수점 표현.
Sid Sid Sess 참조. (별명 sess, 세션).
SIG 보류중인 보류 중. (별명 보류중인, sig_pend).
Sigcatch는 잡히는 것을 보았다. (별명, SIG_CATCH).
Sigignore는 무시한 것을 무시합니다. (별명 무시, sig_ignore).
Sigmask는 차단 된 차단 된 차단. (별명 차단, sig_block).
크기 크기 대략적인 스왑 공간의 대략적인 양
프로세스가 더러워지면 필요합니다
쓰기 가능한 페이지를 작성한 다음 교체됩니다. 이것
숫자는 매우 거칠다!
슬라이스 슬라이스는 프로세스가 속한 슬라이스 장치를 표시합니다.
SystemD 지원이 포함 된 경우.
Spid Spid LWP 참조. (별명 LWP, TID).
Stackp Stackp Stack의 하단 (시작)의 주소
프로세스.
시작 시간이 시작되었습니다. 과정이라면
출력 형식 인 24 시간 이내에 시작되었습니다
"HH : MM : SS", 그렇지 않으면 "MMM DD"(MMM 어디에서
3 글체 이름입니다). 참조하십시오
bsdstart, start, start_time 및 stime.
start_time 프로세스의 시작 시간 또는 날짜 시작. 만
프로세스가 아닌 경우 연도가 표시됩니다
같은 해에 시작된 PS는 "MMMDD"또는 "MMMDD"
같은 날 시작되지 않은 경우 "HH : MM"
그렇지 않으면. BSDStart, Start, Lstart 및
스티임.
STAT STAT 다중 문자 공정 상태. 섹션을 참조하십시오
다른 값에 대한 상태 코드
의미. 원하는 경우 S와 상태도 참조하십시오
첫 번째 캐릭터가 표시되었습니다.
상태는 s를 참조하십시오. (별칭).
Stime Stime start_time을 참조하십시오. (별명 start_time).
Suud Suud 저장된 사용자 ID. (별명 svuid).
보충 그룹의 Supgid Supgid 그룹 ID. 보다
GetGroups (2).
보충 그룹의 Supgrp Supgrp 그룹 이름. 보다
GetGroups (2).
Suser Suser는 사용자 이름을 저장했습니다. 이것은 텍스트 사용자가 될 것입니다
ID, 획득 할 수 있고 필드 너비가
그렇지 않으면 허가 또는 소수점 표현.
(별명 svuser).
svgid svgid 스키드 참조. (스키드 별칭).
svuid svuid 바다 남쪽. (남쪽 별명).
핵심 이미지의 물리적 페이지에서 SZ SZ 크기
프로세스. 여기에는 텍스트, 데이터 및 스택이 포함됩니다
공간. 장치 매핑은 현재 제외됩니다.
이것은 변경 될 수 있습니다. VSZ 및 RSS를 참조하십시오.
tgid tgid 스레드 그룹을 나타내는 숫자
작업은 (별칭 PID)에 속합니다. 프로세스 ID입니다
스레드 그룹 리더의.
thcount thcnt 참조 nlwp. (별명 NLWP). 커널 수
프로세스가 소유 한 스레드.
TID TID 파견 가능한 고유 한 번호
엔티티 (별명 spid, tid). 이 가치도 할 수 있습니다
프로세스 ID (PID); 프로세스 그룹 ID
(PGRP); 세션 리더를위한 세션 ID
(SID); 스레드 그룹의 스레드 그룹 ID
리더 (TGID); 및 TTY 프로세스 그룹 ID
프로세스 그룹 리더 (TPGID).
시간 시간 누적 CPU 시간, "[DD-] HH : MM : SS"형식.
(별명 cputime).
Timens Timens 네임 스페이스를 설명하는 고유 한 inode 번호
프로세스는 다음과 같습니다. 네임 스페이스 (7)를 참조하십시오.
시간 시간 누적 CPU 시간은 초 (별칭 cputimes).
tty 제어 tty (터미널). (별명 tt, tty).
TTY에서 전경 프로세스 그룹의 TPGID TPGID ID
(터미널) 프로세스가 연결되어 있습니다
-1 프로세스가 TTY에 연결되지 않은 경우.
TRS TRS 텍스트 상주 세트 크기, 물리적 양
실행 가능한 코드에 전념하는 메모리.
TT TT 제어 TTY (터미널). (별명 tname, tty).
TTY TT 제어 TTY (터미널). (별명 tname, tt).
UCMD CMD COMM 참조. (별명, UCOMM).
UCOMM 명령은 COMM을 참조하십시오. (별명 Comm, UCMD).
uid u deplody ee ee. (EUID 별칭).
Uname 사용자는 euser를 참조하십시오. (별명 euser, 사용자).
단위 장치는 프로세스가 속한 단위를 표시합니다.
시스템 지원이 포함되었습니다.
사용자 사용자는 euser를 참조하십시오. (별명 euser, uname).
사용자 userns 네임 스페이스를 설명하는 고유 한 inode 번호
프로세스는 다음과 같습니다. 네임 스페이스 (7)를 참조하십시오.
USS USS 고유 한 세트 크기, 비가운 물리적 메모리,
다른 작업과 공유되지 않습니다.
utsns utsns 네임 스페이스를 설명하는 고유 한 inode 번호
프로세스는 다음과 같습니다. 네임 스페이스 (7)를 참조하십시오.
uunit uunit은 프로세스가 속한 사용자 단위를 표시합니다.
시스템 지원이 포함되었습니다.
vsize vsz vsz 참조. (별칭 VSZ).
VSZ VSZ KIB 프로세스의 가상 메모리 크기
(1024 바이트 단위). 장치 매핑은 현재입니다
제외된; 이것은 변경 될 수 있습니다. (별명
vsize).
이 프로세스가 발생한 바이트 수의 wbytes
스토리지 레이어로 보냈습니다.
wcbytes wcbytes 취소 된 쓰기 바이트의 수.
wchan wchan 프로세스의 커널 기능의 이름
자고있다.
이 작업이 발생한 바이트 수의 WCHARS WCHARS 또는
디스크에 기록되도록해야합니다.
WOPS WOPS WRITE I/O 작업, 즉 시스템
Write (2) 및 Pwrite (2)와 같은 호출.
환경 변수
다음 환경 변수는 PS에 영향을 줄 수 있습니다.
열
기본 디스플레이 너비를 재정의합니다.
윤곽
기본 디스플레이 높이를 재정의합니다.
ps_personality
Posix, Old, Linux, BSD, Sun, Digital 중 하나에 설정
아래의 성격).
CMD_ENV
Posix, Old, Linux, BSD, Sun, Digital 중 하나에 설정
아래의 성격).
i_want_a_broken_ps
쓸모없는 명령 줄 해석을 강제로합니다.
lc_time
날짜 형식.
libproc_hide_kernel
일반적으로 표시되는 커널 스레드를 숨기려면 모든 값으로 설정하십시오.
-e 옵션. 이것은 -ppid 2 -p 2를 선택하는 것과 같습니다
-대신 선택하십시오. BSD 모드에서도 작동합니다.
ps_colors
현재 지원되지 않습니다.
ps_format
기본 출력 형식 재정의. 이것을 형식 문자열로 설정할 수 있습니다
-o 옵션에 사용되는 유형의 defsysv 및 defbsd 값
특히 유용합니다.
posixly_correct
나쁜 "기능"을 무시할 변명을 찾지 마십시오.
posix2
"on"으로 설정되면 posixly_correct 역할을합니다.
UNIX95
나쁜 "기능"을 무시할 변명을 찾지 마십시오.
_xpg
CMD_ENV = IRIX 비표준 동작을 취소합니다.
일반적으로 이러한 변수를 설정하는 것은 나쁜 생각입니다. 한 가지 예외
CMD_ENV 또는 PS_PERONITALES는 Linux로 설정할 수 있습니다.
시스템. 그 설정이 없으면 PS는 쓸모없고 나쁜 부분을 따릅니다.
UNIX98 표준.
성격
390 OS/390 Openedition PS
Aix PS와 같은 AIX
freebsd ps와 같은 BSD (완전히 비표준)
Digital Unix PS와 같은 Compaq
오래된 데비안 PS와 같은 데비안
Tru64와 같은 디지털 (Digital Unix, OSF/1) PS
오래된 데비안 PS와 같은 GNU
HP-UX PS와 같은 HP
HP-UX PS와 같은 HPUX
irix ps와 같은 irix
Linux ***** 추천 *****
원래 Linux PS와 같은 오래된 (완전히 비표준)
OS390 OS/390 Open Edition PS
posix 표준
OS/390 Open Edition PS와 같은 S390
sco sco ps
IRIX PS와 같은 SGI
Solaris2와 같은 Solaris 2+ (Sunos 5) ps
Sunos4 Like Sunos 4 (Solaris 1) PS (완전히 비표준)
SVR4 표준
SYSV 표준
tru64와 같은 tru64 (Digital Unix, OSF/1) ps
유닉스 표준
UNIX95 대기 디
UNIX98 표준
버그
필드 bsdstart 및 start에는 약어 월 이름 만 표시됩니다.
영어로. Fields Lstart와 Stime은 약어 월을 보여줄 것입니다.
구성된 로케일의 이름은
약식 월 및 요일 이름의 다른 길이
언어.
참조하십시오
PGREP (1), PSTREE (1), 상단 (1), Strftime (3), Proc (5).
표준
이 PS는 다음을 준수합니다.
단일 유닉스 사양의 1 버전 2
2 개방형 그룹 기술 표준 기본 사양, 문제 6
3 IEEE STD 1003.1, 2004 판
4 x/오픈 시스템 인터페이스 확장 [UP XSI]
5 ISO/IEC 9945 : 2003
작가
추신은 원래 Branko Lankester가 작성했습니다. 마이클 K. 존슨
Proc FileSystem을 사용하여 몇 가지를 변경하기 위해 상당히 다시 작성했습니다.
그 과정의 것들. Michael Shields는 PID-LIST 기능을 추가했습니다.
Charles Blake는 다중 레벨 분류, Dirent 스타일 라이브러리, The를 추가했습니다
장치 Name-to-Number Mmaped 데이터베이스, 대략 이진 검색
System.Map 및 많은 코드 및 문서 정리에 직접.
David Mossberger-Tang은 Psupdate에 대한 일반적인 BFD 지원을 썼습니다.
Albert Cahalan은 전체 UNIX98 및 BSD 지원을 위해 PS를 다시 작성합니다.
쓸모없고 외국 구문에 대한 못생긴 해킹.
procps@freelists.org로 버그 보고서를 보내주십시오. 구독이 없습니다
필수 또는 제안.
2023-08-19 PS (1)의 Procps
형태 : ps [옵션]
기능 : 현재 실행중인 프로세스에 대한 정보를 출력한다.
프로세스 : 컴퓨터에서 사용중인 프로그램. 컴퓨터의 자원을 쓰고 있는 대상이라고 보면 된다.
[옵션]
<유닉스 옵션> (- 붙여서 사용)
-e : 시스템에서 실행중인 모든 프로세스의 정보를 출력한다.
-f : 프로세스에 대한 자세한 정보를 출력한다.
-u [UID]: 특정 사용자에 대한 모든프로세스의 정보를 출력한다.(f와 함께 쓸 경우 f가 먼저 입력되게 사용)
-p [PID] : [PID]로 지정한 특정 프로세스의 정보를 출력한다.
<BSD 옵션> (-를 붙이지 않고 사용)
a : 터미널에서 실행시킨 프로세스의 정보를 자세하게 출력한다.
u : 프로세스 소유자 이름, CPU 사용량, 메모리 사용량 등 상세정보를 출력한다.
x : 시스템에서 실행중인 모든 프로세스의 정보를 출력한다.
<GNU 옵션>
--pid [PID 목록] : [PID 목록]으로 지정한 특정 PID 정보를 출력한다.
이 기능은 윈도우에서 작업관리자로 프로세스를 확인하는 것을 리눅스에서 CLI 확인할 수 있는 명령어이다.
불필요한 활성 프로세스가 작동하고 있는지, 컴퓨터의 자원을 많이 소모하고 있는지 등 여러가지 내용을 확인할 수 있으니 유용하게 사용해보자.
-f 옵션 출력 항목(유닉스 옵션)
| 항목 | 의미 | 항목 | 의미 |
| UID | 프로세스를 실행한 사용자 ID | STIME | 프로세스의 시작 날짜/시간 |
| PID | 프로세스 번호 | TTY | 프로세스가 실행된 터미널의 종류와 번호 |
| PPID | 부모 프로세스 번호(종속됨) | TIME | 프로세스 실행시간 |
| C | CPU 사용량(%값) | CMD | 실행중인 프로세스의 이름(명령) |
a 옵션의 stat(프로세스의 상태) 항목(BSD 옵션)
| 문자 | 의미 | 비고 |
| R | 실행중(Runnig) | |
| S | 인터렙트가 가능한 대기(sleep)상태 | |
| T | 작업 제어에 의해 정지(Stopped)된 상태 | |
| Z | 좀비 프로세스(defunct) | 부모프로세스가 먼저 사라진 자식프로세스 |
| s | 세션 리더 프로세스 | BSD 형식 |
| + | 포그라운드 프로세스 그룹 | |
| l(소문자 L) | 멀티스레드 |
u 옵션의 항목(BSD 옵션)
| 항목 | 의미 | 항목 | 의미 |
| USER | 사용자 계정 이름 | VSZ | 사용중인 가상 메모리의 크기(KB) |
| %MEM | %로 표기한 물리적 메모리 사용량 | RSS | 사용중인 물리 메모리의 크기(KB) |
| START | 프로세스 시작시간 |
'IT 공부내용 정리 > Linux' 카테고리의 다른 글
| 리눅스 명령어 - kill 프로세스를 강제 종료 해야 할 때 (0) | 2025.03.13 |
|---|---|
| 터미널 명령어 - pgrep 프로세스를 찾고 싶을 때 (1) | 2025.03.13 |
| 터미널 명령어 - umask 기본 접근 권한의 설정을 바꿔야 할 때 (0) | 2025.03.06 |
| 터미널 명령어 - chmod 파일의 접근 권한을 설정하고 싶을 때 (1) | 2025.03.06 |
| 터미널 명령어 - which / whereis 명령어 파일이 어디 있는지 알고 싶을 때 (0) | 2025.03.06 |