Co robi PS użycie. Konsola which are required. BSD options may be grouped and do not start with a.

Czy przydatne?

Polecenie ps

Wykonanie, użycie: Report on active processes. ps has three types of options. GNU long options start with two hyphens, which are required. BSD options may be grouped and do not start with a hyphen, while Unix98 options may be grouped and require an initial hyphen. The meaning of the short options can vary depending on whether or not there is a hyphen. In options, list arguments should either be comma-separated or space-separated and placed inside double quotes. In comparing the amount of output produced, note that e prints more than a and l prints more than f for each entry

Opcje wykonania ps w konsoli

nums, p nums, -p nums, --pid=nums

Include only specified processes, which are given in a space-delimited list.

-nums, -s nums, --sid=nums

Include only specified session IDs, which are given in a space-delimited list.

[-] a

As a, list all processes on a terminal. As -a, list all processes except session leaders and processes not associated with a terminal.

[-] c

As -c, show different scheduler information with -l. As c, show the true command name.

-C cmds

Select by command name.

--cols=cols, --columns=cols

Set the output width (the number of columns to display).

-d

Select all processes except session leaders.

-e, -A

Select all processes.

e

Include environment information after the command.

[-] f, --forest

As -f, display full listing. As f or --forest, display "forest" family tree format, with ASCII art showing the relationships.

-F

Set extra-full format; implies -f.

-g list, -G list, --group=groups, --Group=groups

For -g, select by session leader if list contains numbers, or by group if it contains group names. For -G, select by the group IDs in list. --group selects by effective group and --Group selects by real group, where groups can be either group names or group IDs.

h, --no-headers

Suppress header. If you select a BSD personality by setting the environment variable PS_PERSONALITY to bsd, then h prints a header on each page.

-H

Display "forest" family tree format, but without ASCII art.

H

Display threads as if they were processes.

--headers

Repeat headers on every output page.

--help

Display help information and exit.

--info

Print debugging information.

[-] j

Jobs format. j prints more information than -j.

-k spec, --sort spec

Specify sort order. Syntax for the specification is:

[+|-] key[,[+|-] key...] ]

The default direction is +, for increasing numerical or alphabetic order. See Format and sort specifiers for possible keys.

[-] l

Produce a long listing. -l prints more information than l and is often used with -y.

L

Print list of field specifiers that can be used for output formatting or for sorting.

-L

Show threads, possibly with LWP and NLWP columns.

--lines=num, --rows=num

Set the screen height to num lines. If --headers is also set, the headers repeat every num lines.

[-] m

Show threads after processes.

n

Print user IDs and WCHAN numerically.

-n file, N file

Specify the System.map file for ps to use as a namelist file. The map file must correspond to the Linux kernel—e.g., /boot/System.map-2.4.19.

-N, --deselect

Negate the selection, selecting all processes that do not meet the specified conditions.

[-] o fields, --format=fields

As -o, o, or --format, specify user-defined format with a list of fields to display.

[-] O fields

As -O, this option is like -o, but some common fields are predefined. As O, this option can be either the same as -O in specifying fields to display, or can specify single-letter fields for sorting. For sorting, each field specified as a key can optionally have a leading + (return to default sort direction on key) or - (reverse the default direction).

--ppid=nums

Select by parent process IDs.

r

Show only processes that are currently running.

s

Display signal format.

-S, --cumulative

Include some dead child process data in parent total.

[-] tttys, --tty=ttys

Display processes running on the specified terminals. t with no terminal list displays processes for the terminal associated with ps. Specify - to select processes not associated with any terminal.

T

Display all processes on this terminal. Like t with no argument.

-T

Display threads, possibly with SPID column,

[-] u [users] , --user=users

As u with no argument, display user-oriented output. As -u or --user, display by effective user ID (and also support names), showing results for users. With no argument, -u displays results for the current user.

[-] U users, --User=users

As U, display processes by effective user ID. As -U or --User, display processes for users by real user ID (and also support names).

v

Display virtual memory format.

[-] V, --version

Display version information and then exit.

[-] w

Wide format. Don't truncate long lines. Use twice to set an unlimited width.

--width=cols

Set screen width.

x

Display processes without an associated terminal.

X

Use old Linux i386 register format.

-y

Do not show flags; show rss instead of addr. Requires -l.

Przykłady ps działanie w Słownik polecenie P

Przykład PS użycie :
Jak użyć administration command. PPP stands for the Point-to-Point Protocol; it allows datagram transmission over a serial connection. pppd attempts to configure tty for PPP (searching in /dev ) or, by co znaczy.
Przykład PS użycie :
Jak użyć Determine validity and portability of filenames . Specifically, determine if all directories within the path are searchable and if the length of the filenames is acceptable krzyżówka.
Przykład PS użycie :
Jak użyć Display the memory maps of a process co to jest.
Przykład PS użycie :
Jak użyć Convert a text file or files to a paginated or columned version, with headers, suitable for printing. If - is provided as the filename, read from standard input słownik.
Przykład PS użycie :
Jak użyć specified in patchfile to original . Replace the original with the new, patched version; move the original to original.orig or original~ . The patch file is a difference listing produced by the diff czym jest.