Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
elearning:workbooks:redhat:rh124:l109 [2024/09/26 11:52] – created admin | elearning:workbooks:redhat:rh124:l109 [2024/09/27 13:05] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 46: | Ligne 46: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | 1 1113 1158 1464 1590 1601 163 | + | 1 |
- | 10 | + | 10 10590 |
- | 11 1126 13 15 16 1627 164 | + | 10062 10591 13 |
- | 1111 1135 14 1585 1600 1628 165 | + | 10066 10592 14 |
+ | 10223 10595 15 | ||
+ | 10383 10596 16 | ||
</ | </ | ||
Ligne 56: | Ligne 58: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
total 0 | total 0 | ||
- | dr-xr-xr-x. 2 root root 0 Jun 3 09:01 attr | + | -r--r--r--. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:02 autogroup | + | dr-xr-xr-x. |
- | -r--------. 1 root root 0 Jun 3 09:02 auxv | + | -rw-r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:01 cgroup | + | -r--------. |
- | --w-------. 1 root root 0 Jun 3 09:02 clear_refs | + | -r--r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:01 cmdline | + | --w-------. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:01 comm | + | -r--r--r--. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:02 coredump_filter | + | -rw-r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 cpu_resctrl_groups | + | -rw-r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 cpuset | + | -r--r--r--. |
- | lrwxrwxrwx. 1 root root 0 Jun 3 09:02 cwd -> / | + | -r--r--r--. |
- | -r--------. 1 root root 0 Jun 3 09:01 environ | + | lrwxrwxrwx. |
- | lrwxrwxrwx. 1 root root 0 Jun 3 09:01 exe -> / | + | -r--------. |
- | dr-x------. 2 root root 0 Jun 3 09:01 fd | + | lrwxrwxrwx. |
- | dr-x------. 2 root root 0 Jun 3 09:01 fdinfo | + | dr-x------. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:01 gid_map | + | dr-xr-xr-x. 2 root root 0 Sep 25 14:56 fdinfo |
- | -r--------. 1 root root 0 Jun 3 09:02 io | + | -rw-r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 limits | + | -r--------. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:01 loginuid | + | -r--------. |
- | dr-x------. 2 root root 0 Jun 3 09:02 map_files | + | -r--r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:01 maps | + | -rw-r--r--. |
- | -rw-------. 1 root root 0 Jun 3 09:02 mem | + | dr-x------. |
- | -r--r--r--. 1 root root 0 Jun 3 09:01 mountinfo | + | -r--r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:01 mounts | + | -rw-------. |
- | -r--------. 1 root root 0 Jun 3 09:02 mountstats | + | -r--r--r--. |
- | dr-xr-xr-x. | + | -r--r--r--. |
- | dr-x--x--x. 2 root root 0 Jun 3 09:02 ns | + | -r--------. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 numa_maps | + | dr-xr-xr-x. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:02 oom_adj | + | dr-x--x--x. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 oom_score | + | -r--r--r--. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:02 oom_score_adj | + | -rw-r--r--. |
- | -r--------. 1 root root 0 Jun 3 09:02 pagemap | + | -r--r--r--. |
- | -r--------. 1 root root 0 Jun 3 09:02 patch_state | + | -rw-r--r--. |
- | -r--------. 1 root root 0 Jun 3 09:02 personality | + | -r--------. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:02 projid_map | + | -r--------. |
- | lrwxrwxrwx. 1 root root 0 Jun 3 09:01 root -> / | + | -r--------. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:01 sched | + | -rw-r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 schedstat | + | lrwxrwxrwx. |
- | -r--r--r--. 1 root root 0 Jun 3 09:01 sessionid | + | -rw-r--r--. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:01 setgroups | + | -r--r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 smaps | + | -r--r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 smaps_rollup | + | -rw-r--r--. |
- | -r--------. 1 root root 0 Jun 3 09:02 stack | + | -r--r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:01 stat | + | -r--r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 statm | + | -r--------. |
- | -r--r--r--. 1 root root 0 Jun 3 09:01 status | + | -r--r--r--. |
- | -r--------. 1 root root 0 Jun 3 09:02 syscall | + | -r--r--r--. |
- | dr-xr-xr-x. 3 root root 0 Jun 3 09:01 task | + | -r--r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 timers | + | -r--------. |
- | -rw-rw-rw-. 1 root root 0 Jun 3 09:02 timerslack_ns | + | dr-xr-xr-x. |
- | -rw-r--r--. 1 root root 0 Jun 3 09:01 uid_map | + | -rw-r--r--. |
- | -r--r--r--. 1 root root 0 Jun 3 09:02 wchan | + | -r--r--r--. |
+ | -rw-rw-rw-. | ||
+ | -rw-r--r--. | ||
+ | -r--r--r--. | ||
</ | </ | ||
Ligne 128: | Ligne 133: | ||
* //user mode// - le processus s' | * //user mode// - le processus s' | ||
* //kernel mode//- le processus s' | * //kernel mode//- le processus s' | ||
+ | * //new// - le processus est nouveau, | ||
* //waiting// – le processus est en attente pour une ressource autre que le processeur, | * //waiting// – le processus est en attente pour une ressource autre que le processeur, | ||
* // | * // | ||
- | * // | ||
* //swap// - le processus est endormi dans la mémoire virtuelle, | * //swap// - le processus est endormi dans la mémoire virtuelle, | ||
- | * //new// - le processus | + | * //runnable// – le processus |
* //elected// – le processus a le contrôle du processeur, | * //elected// – le processus a le contrôle du processeur, | ||
* //zombie// – le processus a terminé son exécution et est prêt à mourir. | * //zombie// – le processus a terminé son exécution et est prêt à mourir. | ||
Ligne 143: | Ligne 148: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | [root@centos8 | + | |
+ | [root@redhat9 | ||
PID TTY TIME CMD | PID TTY TIME CMD | ||
- | | + | 10062 pts/0 00:00:00 su |
- | 1634 pts/0 00:00:00 bash | + | |
- | 1690 pts/0 00:00:00 ps | + | |
</ | </ | ||
Ligne 154: | Ligne 160: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
F S | F S | ||
- | 4 S | + | 4 S |
- | 4 S | + | 4 S |
- | 0 R | + | 4 R |
</ | </ | ||
Ligne 181: | Ligne 187: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
F | F | ||
- | 4 | + | 4 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 5 0 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 0 |
- | 5 0 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 1 | + | 1 0 |
- | 1 | + | 1 |
- | 1 | + | 1 |
- | 5 0 | + | 1 0 28 2 -51 |
+ | 1 0 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 0 34 2 -51 | ||
+ | 1 | ||
+ | 1 0 36 | ||
+ | 1 | ||
+ | 5 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 0 45 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 0 50 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 0 55 | ||
+ | 1 | ||
+ | 1 0 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 0 | ||
+ | 1 | ||
+ | 1 | ||
+ | 1 | ||
--More-- | --More-- | ||
+ | [q] | ||
</ | </ | ||
Ligne 218: | Ligne 257: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | ||
- | root | + | root |
- | root | + | root |
- | root | + | root |
- | root | + | root |
- | root | + | root |
- | root | + | root |
- | root 7 0.1 | + | root |
- | root 8 | + | root |
- | root 9 | + | root 12 0.0 0.0 0 0 ? I Sep25 0:00 [rcu_tasks_kthre] |
- | root | + | root 13 0.0 0.0 0 0 ? I Sep25 0:00 [rcu_tasks_rude_] |
- | root | + | root |
- | root | + | root 15 0.0 0.0 0 0 ? S Sep25 0:00 [ksoftirqd/0] |
- | root | + | root |
- | root | + | root 17 0.0 0.0 0 0 ? S Sep25 0:00 [migration/0] |
- | root | + | root |
- | root | + | root |
- | root | + | root 21 0.0 0.0 0 0 ? S Sep25 0:00 [cpuhp/1] |
- | root | + | root |
- | root | + | root 23 0.0 0.0 0 0 ? S Sep25 0:00 [migration/1] |
- | root | + | root |
- | root | + | root 27 0.0 0.0 0 0 ? S Sep25 0:00 [cpuhp/2] |
- | root | + | root 28 |
+ | root | ||
+ | root 30 0.0 0.0 0 0 ? S Sep25 0:00 [ksoftirqd/2] | ||
+ | root 32 | ||
+ | root | ||
+ | root | ||
+ | root | ||
+ | root | ||
+ | root | ||
+ | root | ||
+ | root 43 | ||
+ | root 44 0.0 0.0 0 0 ? S Sep25 0:00 [kauditd] | ||
+ | root 45 0.0 0.0 0 0 ? S Sep25 0:00 [khungtaskd] | ||
+ | root | ||
+ | root 47 0.0 0.0 0 0 ? I< | ||
+ | root | ||
+ | root 49 0.0 0.0 0 0 ? SN | ||
+ | root 50 0.0 0.0 0 0 ? SN | ||
+ | root 51 0.0 0.0 0 0 ? I< | ||
+ | root 52 0.0 0.0 0 0 ? I< | ||
+ | root 53 0.0 0.0 0 0 ? I< | ||
+ | root 54 0.0 0.0 0 0 ? I< | ||
+ | root 55 0.0 0.0 0 0 ? I< | ||
+ | root 56 0.0 0.0 0 0 ? I< | ||
+ | root 57 0.0 0.0 0 0 ? I< | ||
+ | root 58 0.0 0.0 0 0 ? I< | ||
+ | root 59 0.0 0.0 0 0 ? S Sep25 0:00 [watchdogd] | ||
+ | root 61 0.0 0.0 0 0 ? I< | ||
+ | root 62 0.0 0.0 0 0 ? S Sep25 0:00 [kswapd0] | ||
+ | root 69 0.0 0.0 0 0 ? I< | ||
+ | root 76 0.0 0.0 0 0 ? I< | ||
+ | root 77 0.0 0.0 0 0 ? I< | ||
+ | root 78 0.0 0.0 0 0 ? I< | ||
--More-- | --More-- | ||
+ | [q] | ||
</ | </ | ||
Ligne 254: | Ligne 326: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
Usage: | Usage: | ||
Ligne 344: | Ligne 416: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | 905 | + | 5734 |
- | 1585 | + | 9357 |
</ | </ | ||
Ligne 352: | Ligne 424: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
1 | 1 | ||
2 | 2 | ||
3 | 3 | ||
4 | 4 | ||
+ | 5 | ||
6 | 6 | ||
- | 7 | + | 8 |
- | 9 | + | |
10 | 10 | ||
- | 11 | ||
12 | 12 | ||
13 | 13 | ||
Ligne 374: | Ligne 445: | ||
23 | 23 | ||
24 | 24 | ||
- | 26 | ||
27 | 27 | ||
+ | 28 | ||
+ | 29 | ||
+ | 30 | ||
+ | 32 | ||
+ | 33 | ||
+ | 34 | ||
+ | 35 | ||
+ | 36 | ||
+ | 38 | ||
+ | 42 | ||
+ | 43 | ||
+ | 44 | ||
+ | 45 | ||
+ | 46 | ||
+ | 47 | ||
+ | 48 | ||
+ | 49 | ||
+ | 50 | ||
+ | 51 | ||
+ | 52 | ||
+ | 53 | ||
+ | 54 | ||
+ | 55 | ||
+ | 56 | ||
+ | 57 | ||
+ | 58 | ||
+ | 59 | ||
+ | 61 | ||
+ | 62 | ||
+ | 69 | ||
+ | 76 | ||
+ | 77 | ||
+ | 78 | ||
+ | 79 | ||
--More-- | --More-- | ||
+ | [q] | ||
</ | </ | ||
Ligne 382: | Ligne 487: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
Usage: | Usage: | ||
Ligne 400: | Ligne 505: | ||
-n, --newest | -n, --newest | ||
-o, --oldest | -o, --oldest | ||
+ | -O, --older < | ||
-P, --parent < | -P, --parent < | ||
-s, --session < | -s, --session < | ||
Ligne 408: | Ligne 514: | ||
-F, --pidfile < | -F, --pidfile < | ||
-L, --logpidfile | -L, --logpidfile | ||
+ | -r, --runstates < | ||
--ns < | --ns < | ||
| | ||
Ligne 417: | Ligne 524: | ||
-V, --version | -V, --version | ||
- | For more details see pgrep(1) | + | For more details see pgrep(1). |
</ | </ | ||
Ligne 425: | Ligne 532: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | systemd─┬─NetworkManager───2*[{NetworkManager}] | + | systemd─┬─ModemManager───3*[{ModemManager}] |
- | ├─agetty | + | ├─NetworkManager───2*[{NetworkManager}] |
+ | ├─accounts-daemon───3*[{accounts-daemon}] | ||
+ | ├─at-spi-bus-laun─┬─dbus-daemon | ||
+ | │ | ||
+ | ├─at-spi2-registr───2*[{at-spi2-registr}] | ||
├─atd | ├─atd | ||
├─auditd─┬─sedispatch | ├─auditd─┬─sedispatch | ||
│ └─2*[{auditd}] | │ └─2*[{auditd}] | ||
- | ├─chronyd | + | ├─avahi-daemon───avahi-daemon |
+ | ├─colord───3*[{colord}] | ||
├─crond | ├─crond | ||
- | ├─dbus-daemon───{dbus-daemon} | + | |
- | ├─dnsmasq───dnsmasq | + | |
├─firewalld───{firewalld} | ├─firewalld───{firewalld} | ||
- | ├─gssproxy───5*[{gssproxy}] | + | ├─gdm─┬─gdm-session-wor─┬─gdm-wayland-ses─┬─dbus-run-sessio─┬─dbus-daemon |
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | │ | ||
+ | ├─2*[gjs───6*[{gjs}]] | ||
+ | ├─gsd-printer───2*[{gsd-printer}] | ||
+ | ├─3*[httpd─┬─httpd] | ||
+ | │ ├─httpd───68*[{httpd}]] | ||
+ | │ └─2*[httpd───52*[{httpd}]]] | ||
+ | ├─ibus-portal───2*[{ibus-portal}] | ||
+ | ├─ibus-x11───2*[{ibus-x11}] | ||
├─irqbalance───{irqbalance} | ├─irqbalance───{irqbalance} | ||
- | ├─ksmtuned───sleep | ||
├─lsmd | ├─lsmd | ||
├─mcelog | ├─mcelog | ||
├─polkitd───7*[{polkitd}] | ├─polkitd───7*[{polkitd}] | ||
- | ├─rngd───4*[{rngd}] | + | ├─power-profiles-───2*[{power-profiles-}] |
- | ├─rpcbind | + | ├─rhsmcertd───{rhsmcertd} |
├─rsyslogd───2*[{rsyslogd}] | ├─rsyslogd───2*[{rsyslogd}] | ||
- | ├─smartd | + | ├─rtkit-daemon───2*[{rtkit-daemon}] |
├─sshd───sshd───sshd───bash───su───bash───pstree | ├─sshd───sshd───sshd───bash───su───bash───pstree | ||
- | ├─sssd─┬─sssd_be | + | ├─switcheroo-cont───2*[{switcheroo-cont}] |
- | │ └─sssd_nss | + | ├─systemd─┬─(sd-pam) |
+ | │ ├─dbus-broker-lau───dbus-broker | ||
+ | │ | ||
+ | │ | ||
+ | │ └─wireplumber───4*[{wireplumber}] | ||
├─systemd───(sd-pam) | ├─systemd───(sd-pam) | ||
├─systemd-journal | ├─systemd-journal | ||
├─systemd-logind | ├─systemd-logind | ||
- | ├─systemd-machine | ||
├─systemd-udevd | ├─systemd-udevd | ||
- | └─tuned───3*[{tuned}] | + | |
+ | ├─upowerd───2*[{upowerd}] | ||
+ | ├─wpa_supplicant | ||
+ | | ||
</ | </ | ||
Ligne 460: | Ligne 607: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
pstree: unrecognized option ' | pstree: unrecognized option ' | ||
- | Usage: pstree [-acglpsStuZ] [ -h | -H PID ] [ -n | -N type ] | + | Usage: pstree [-acglpsStTuZ] [ -h | -H PID ] [ -n | -N type ] |
[ -A | -G | -U ] [ PID | USER ] | [ -A | -G | -U ] [ PID | USER ] | ||
- | pstree -V | + | |
Display a tree of processes. | Display a tree of processes. | ||
-a, --arguments | -a, --arguments | ||
-A, --ascii | -A, --ascii | ||
- | -c, --compact | + | -c, --compact-not don't compact identical subtrees |
- | -h, --highlight-all highlight current | + | -C, --color=TYPE |
- | -H PID, | + | (age) |
- | --highlight-pid=PID highlight this process and its ancestors | + | |
-g, --show-pgids | -g, --show-pgids | ||
-G, --vt100 | -G, --vt100 | ||
+ | -h, --highlight-all highlight current process and its ancestors | ||
+ | -H PID, --highlight-pid=PID | ||
+ | highlight this process and its ancestors | ||
-l, --long | -l, --long | ||
-n, --numeric-sort | -n, --numeric-sort | ||
- | -N type, | + | -N TYPE, --ns-sort=TYPE |
- | | + | |
- | | + | |
-p, --show-pids | -p, --show-pids | ||
-s, --show-parents | -s, --show-parents | ||
Ligne 489: | Ligne 639: | ||
-V, --version | -V, --version | ||
-Z, --security-context | -Z, --security-context | ||
- | show SELinux | + | show security |
PID start at this PID; default is 1 (init) | PID start at this PID; default is 1 (init) | ||
USER show only trees rooted at processes of this user | USER show only trees rooted at processes of this user | ||
Ligne 499: | Ligne 650: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | top - 09:10:02 up 8 min, 1 user, load average: 0.05, 0.09, 0.08 | + | top - 14:41:00 up 2 days, 1:56, 1 user, load average: 0.01, 0.01, 0.00 |
- | Tasks: | + | Tasks: |
- | %Cpu(s): | + | %Cpu(s): |
- | MiB Mem : 3737.7 total, | + | MiB Mem : 7685.1 total, |
- | MiB Swap: 2000.0 total, | + | MiB Swap: 5120.0 total, |
- | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND |
- | | + | |
- | 827 polkitd | + | 1 root |
- | 834 dbus | + | 2 root |
- | 1789 root | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | 10 root 0 -20 |
- | | + | 12 root 20 0 |
- | 10 root 20 | + | 13 root 20 |
- | 11 root 20 | + | 14 root 20 |
- | 12 root | + | 15 root |
- | 13 root rt | + | 16 root 20 |
- | 14 root | + | |
- | 15 root 20 | + | 18 root -51 0 |
- | 16 root | + | 20 root 20 |
- | 17 root | + | 21 root |
- | 18 root | + | 22 root -51 0 |
- | | + | 23 root |
- | 21 root 20 | + | 24 root |
- | 22 root | + | 27 root 20 |
- | 23 root rt | + | 28 root -51 0 |
- | 24 root 20 | + | 29 root rt |
- | 26 root 0 -20 | + | 30 root 20 |
- | 27 root 20 | + | 32 root 0 -20 |
- | 28 root | + | 33 root 20 |
- | 29 root rt | + | 34 root -51 0 |
- | 30 root 20 | + | 35 root rt |
- | 32 root 0 -20 | + | 36 root 20 |
- | 35 root 20 | + | 38 root 0 -20 |
- | 36 root 0 -20 | + | 42 root 20 |
- | 37 root 20 | + | 43 root 0 -20 |
- | 38 root 20 | + | 44 root 20 |
- | 39 root 20 | + | 45 root 20 |
- | 40 root 0 -20 | + | 46 root 20 |
- | 41 root 20 | + | 47 root 0 -20 |
- | 42 root 25 | + | 48 root 20 |
- | 43 root 39 19 | + | 49 root 25 |
- | 44 root 0 -20 | + | 50 root 39 19 |
- | 45 root 0 -20 | + | 51 root 0 -20 |
- | 46 root 0 -20 | + | 52 root 0 -20 |
- | 47 root 0 -20 | + | 53 root 0 -20 |
- | 48 root 0 -20 | + | 54 root 0 -20 |
- | 49 root 0 -20 | + | 55 root 0 -20 |
- | 50 root 0 -20 | + | 56 root 0 -20 |
- | 51 root rt | + | 57 root 0 -20 |
- | | + | 58 root 0 -20 |
- | 69 root | + | 59 root -51 0 |
- | 162 root 0 -20 | + | |
- | 163 root 0 -20 | + | |
... | ... | ||
</ | </ | ||
Ligne 565: | Ligne 714: | ||
< | < | ||
- | Help for Interactive Commands - procps-ng 3.3.15 | + | Help for Interactive Commands - procps-ng 3.3.17 |
Window 1:Def: Cumulative mode Off. System: Delay 3.0 secs; Secure mode Off. | Window 1:Def: Cumulative mode Off. System: Delay 3.0 secs; Secure mode Off. | ||
Z, | Z, | ||
- | l,t,m | + | l,t,m,I Toggle: ' |
- | 0,1,2,3,I Toggle: ' | + | 0,1,2,3,4 Toggle: ' |
f,F,X | f,F,X | ||
L,&,<,> | L,&,<,> | ||
- | R,H,V,J . Toggle: ' | + | R,H,J,C . Toggle: ' |
c,i,S,j . Toggle: ' | c,i,S,j . Toggle: ' | ||
x,y . Toggle highlights: ' | x,y . Toggle highlights: ' | ||
Ligne 580: | Ligne 729: | ||
u,U,o,O . Filter by: ' | u,U,o,O . Filter by: ' | ||
n,#, | n,#, | ||
- | | + | |
k,r | k,r | ||
d or s Set update interval | d or s Set update interval | ||
- | W,Y | + | W,Y,! Write config |
q Quit | q Quit | ||
( commands shown with ' | ( commands shown with ' | ||
Ligne 598: | Ligne 747: | ||
< | < | ||
- | [root@centos8 ~]# top | + | top - 14:42:15 up 2 days, 1:57, 1 user, load average: 0.00, 0.00, 0.00 |
- | ... | + | Tasks: |
- | top - 09:11:24 up 10 min, 1 user, load average: 0.01, 0.07, 0.07 | + | %Cpu(s): |
- | Tasks: | + | MiB Mem : 7685.1 total, |
- | %Cpu(s): | + | MiB Swap: 5120.0 total, |
- | MiB Mem : 3737.7 total, | + | |
- | MiB Swap: 2000.0 total, | + | |
Change delay from 3.0 to 1 | Change delay from 3.0 to 1 | ||
... | ... | ||
Ligne 612: | Ligne 759: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | ... | + | top - 14:43:12 up 2 days, 1:58, 1 user, load average: 0.00, 0.00, 0.00 |
- | top - 09:12:07 up 10 min, 1 user, load average: 0.00, 0.05, 0.06 | + | Tasks: |
- | Tasks: | + | %Cpu(s): |
- | %Cpu(s): | + | MiB Mem : 7685.1 total, |
- | MiB Mem : 3737.7 total, | + | MiB Swap: 5120.0 total, |
- | MiB Swap: 2000.0 total, | + | |
- | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND |
- | 874 root | + | 6049 gdm |
- | 875 root | + | 6617 gdm 20 |
- | | + | 6206 gdm 20 |
- | | + | 5707 root 20 |
- | 884 root | + | 6444 gdm |
- | 866 root | + | |
- | 840 root | + | 6462 gdm 20 |
- | 1 root | + | 6674 gdm 20 |
- | 1627 root | + | 6486 gdm 20 |
- | 666 root | + | 6432 gdm 20 |
- | 1585 root | + | 6439 gdm 20 |
- | 1590 trainee | + | 6451 gdm 20 |
- | | + | 6571 gdm 20 |
- | | + | 853 root 20 |
- | | + | |
- | | + | 7620 apache |
- | | + | 7431 apache |
- | | + | 6455 gdm |
- | 1600 trainee | + | 7898 apache |
- | 1601 trainee | + | 1 root 20 |
- | 834 dbus | + | 7621 apache |
- | 1634 root 20 | + | 7899 apache |
- | 791 rpc 20 | + | 7432 apache |
- | 1594 trainee | + | 7622 apache |
- | 1113 root 20 | + | 7433 apache |
- | | + | 7900 apache |
- | 1803 root 20 | + | 6381 gdm 9 -11 545148 |
+ | 5742 root 20 | ||
+ | 6452 gdm | ||
+ | 6640 colord | ||
+ | 5851 gdm | ||
+ | 9365 trainee | ||
+ | 6454 gdm | ||
+ | 6477 gdm 20 | ||
+ | 6599 gdm | ||
+ | | ||
+ | 5787 root 20 | ||
+ | 6436 gdm 20 | ||
+ | 5704 root 20 | ||
+ | 6482 gdm | ||
+ | 7429 root 20 | ||
+ | 7618 root | ||
+ | 6377 gdm 9 -11 326096 | ||
+ | 5671 root 20 | ||
+ | 7896 root 20 | ||
+ | 9357 root 20 | ||
+ | 5736 root 20 | ||
+ | | ||
+ | 5765 root 20 | ||
... | ... | ||
</ | </ | ||
Ligne 654: | Ligne 822: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | ... | + | top - 14:44:10 up 2 days, 1:59, 1 user, load average: 0.00, 0.00, 0.00 |
- | top - 09:13:01 up 11 min, 1 user, load average: 0.00, 0.04, 0.06 | + | Tasks: |
- | Tasks: | + | %Cpu(s): |
- | %Cpu(s): | + | MiB Mem : 7685.1 total, |
- | MiB Mem : 3737.7 total, | + | MiB Swap: 5120.0 total, |
- | MiB Swap: 2000.0 total, | + | |
- | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | + | PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND |
- | 827 polkitd | + | 6049 gdm 20 |
- | 1 root 20 | + | |
- | | + | |
- | 1803 root 20 | + | |
</ | </ | ||
Ligne 674: | Ligne 839: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
top: inappropriate ' | top: inappropriate ' | ||
Usage: | Usage: | ||
- | top -hv | -bcEHiOSs1 | + | top -hv | -bcEeHiOSs1 |
</ | </ | ||
Ligne 697: | Ligne 862: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | [1] 1865 | + | [1] 10749 |
- | [root@centos8 | + | |
- | [1]+ | + | [root@redhat9 |
+ | [1]+ 10749 Running | ||
</ | </ | ||
Ligne 712: | Ligne 878: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
^Z | ^Z | ||
[2]+ Stopped | [2]+ Stopped | ||
Ligne 720: | Ligne 886: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
[2]+ sleep 1234 & | [2]+ sleep 1234 & | ||
- | [root@centos8 | + | |
- | [1]- | + | [root@redhat9 |
- | [2]+ | + | [1]- 10749 Running |
+ | [2]+ 10750 Running | ||
</ | </ | ||
Ligne 734: | Ligne 901: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | [root@centos8 ~]# jobs -l | + | |
- | [1]- 1865 Running | + | |
- | [2]+ 1874 Stopped (signal) | + | |
- | </ | + | |
- | Pour reprendre le processus en arrière plan, sans le ramener en avant plan, on utilise la commande kill avec l' | + | [2]+ |
- | + | ||
- | < | + | |
- | [root@centos8 ~]# kill -cont %2 | + | |
- | [root@centos8 ~]# jobs -l | + | |
- | [1]- 1865 Running | + | |
- | [2]+ | + | |
</ | </ | ||
Ligne 752: | Ligne 909: | ||
< | < | ||
- | [root@centos8 ~]# kill -stop %2 | + | [root@redhat9 |
- | + | ||
- | [2]+ Stopped | + | |
- | [root@centos8 ~]# jobs -l | + | |
- | [1]- 1865 Running | + | |
- | [2]+ 1874 Stopped (signal) | + | |
- | [root@centos8 | + | |
sleep 1234 | sleep 1234 | ||
^C | ^C | ||
- | [root@centos8 ~]# | ||
</ | </ | ||
Ligne 771: | Ligne 921: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
jobs: jobs [-lnprs] [jobspec ...] or jobs -x command [args] | jobs: jobs [-lnprs] [jobspec ...] or jobs -x command [args] | ||
Display status of jobs. | Display status of jobs. | ||
Ligne 779: | Ligne 929: | ||
| | ||
Options: | Options: | ||
- | -l lists process IDs in addition to the normal information | + | -l lists process IDs in addition to the normal information |
- | -n lists only processes that have changed status since the last | + | -n lists only processes that have changed status since the last |
- | notification | + | notification |
- | -p lists process IDs only | + | -p lists process IDs only |
- | -r restrict output to running jobs | + | -r restrict output to running jobs |
- | -s restrict output to stopped jobs | + | -s restrict output to stopped jobs |
| | ||
If -x is supplied, COMMAND is run after all job specifications that | If -x is supplied, COMMAND is run after all job specifications that | ||
Ligne 792: | Ligne 942: | ||
Exit Status: | Exit Status: | ||
Returns success unless an invalid option is given or an error occurs. | Returns success unless an invalid option is given or an error occurs. | ||
- | If -x is used, returns the exit status of COMMAND | + | If -x is used, returns the exit status of COMMAND. |
</ | </ | ||
Ligne 800: | Ligne 950: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | [1]+ | + | [1]+ 10749 Running |
- | [root@centos8 | + | |
+ | [root@redhat9 | ||
^C | ^C | ||
- | [root@centos8 | + | |
- | [1]+ | + | [root@redhat9 |
+ | [1]+ 10749 Running | ||
</ | </ | ||
Ligne 817: | Ligne 969: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
^Z | ^Z | ||
[2]+ Stopped | [2]+ Stopped | ||
- | [root@centos8 | + | |
- | 0 | + | [root@redhat9 |
- | 0 0 | + | 0 |
- | 4 | + | 4 0 10775 |
- | 0 | + | 0 |
- | [root@centos8 | + | |
+ | [root@redhat9 | ||
^Z | ^Z | ||
[3]+ Stopped | [3]+ Stopped | ||
- | [root@centos8 | + | |
- | 0 | + | [root@redhat9 |
- | 4 | + | 0 |
- | 0 | + | 4 |
- | 0 | + | 0 |
- | 0 | + | 0 |
</ | </ | ||
Ligne 845: | Ligne 998: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
Usage: nice [OPTION] [COMMAND [ARG]...] | Usage: nice [OPTION] [COMMAND [ARG]...] | ||
Run COMMAND with an adjusted niceness, which affects process scheduling. | Run COMMAND with an adjusted niceness, which affects process scheduling. | ||
Ligne 861: | Ligne 1014: | ||
GNU coreutils online help: < | GNU coreutils online help: < | ||
- | Full documentation | + | Full documentation < |
or available locally via: info ' | or available locally via: info ' | ||
</ | </ | ||
Ligne 870: | Ligne 1023: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | [1] 1865 Running | + | [1] |
- | [2]- | + | [2]- 10775 Stopped |
- | [3]+ | + | [3]+ 10778 Stopped |
- | [root@centos8 | + | |
+ | [root@redhat9 | ||
[2]- nice -n -20 sleep 1234 & | [2]- nice -n -20 sleep 1234 & | ||
- | [root@centos8 | + | |
+ | [root@redhat9 | ||
[3]+ nice -n 19 sleep 5678 & | [3]+ nice -n 19 sleep 5678 & | ||
- | [root@centos8 | + | |
- | [1] 1865 Running | + | [root@redhat9 |
- | [2]- | + | [1] |
- | [3]+ | + | [2]- 10775 Running |
- | [root@centos8 | + | [3]+ 10778 Running |
- | 1999 (process ID) old priority -20, new priority 5 | + | |
- | [root@centos8 | + | [root@redhat9 |
- | 2008 (process ID) old priority 19, new priority -5 | + | 10775 (process ID) old priority -20, new priority 5 |
- | [root@centos8 | + | |
- | 0 | + | [root@redhat9 |
- | 4 | + | 10778 (process ID) old priority 19, new priority -5 |
- | 0 | + | |
- | 0 | + | [root@redhat9 |
- | 0 | + | 0 |
+ | 4 | ||
+ | 0 | ||
+ | 0 | ||
</ | </ | ||
Ligne 901: | Ligne 1059: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
Usage: | Usage: | ||
Ligne 911: | Ligne 1069: | ||
Options: | Options: | ||
- | -n, --priority < | + | -n, --priority < |
- | -p, --pid < | + | -p, --pid interpret |
- | -g, --pgrp | + | -g, --pgrp |
- | -u, --user | + | -u, --user |
-h, --help | -h, --help | ||
Ligne 933: | Ligne 1091: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
Usage: nohup COMMAND [ARG]... | Usage: nohup COMMAND [ARG]... | ||
or: nohup OPTION | or: nohup OPTION | ||
Ligne 952: | Ligne 1110: | ||
GNU coreutils online help: < | GNU coreutils online help: < | ||
- | Full documentation | + | Full documentation < |
or available locally via: info ' | or available locally via: info ' | ||
</ | </ | ||
Ligne 961: | Ligne 1119: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
- | 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP | + | 1) SIGHUP |
- | 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1 | + | 6) SIGABRT |
- | 11) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM | + | 11) SIGSEGV |
- | 16) SIGSTKFLT 17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP | + | 16) SIGSTKFLT |
- | 21) SIGTTIN 22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ | + | 21) SIGTTIN |
- | 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO 30) SIGPWR | + | 26) SIGVTALRM |
- | 31) SIGSYS 34) SIGRTMIN 35) SIGRTMIN+1 36) SIGRTMIN+2 37) SIGRTMIN+3 | + | 31) SIGSYS |
- | 38) SIGRTMIN+4 39) SIGRTMIN+5 40) SIGRTMIN+6 41) SIGRTMIN+7 42) SIGRTMIN+8 | + | 38) SIGRTMIN+4 |
- | 43) SIGRTMIN+9 44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13 | + | 43) SIGRTMIN+9 |
- | 48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12 | + | 48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12 |
- | 53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9 56) SIGRTMAX-8 57) SIGRTMAX-7 | + | 53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9 |
- | 58) SIGRTMAX-6 59) SIGRTMAX-5 60) SIGRTMAX-4 61) SIGRTMAX-3 62) SIGRTMAX-2 | + | 58) SIGRTMAX-6 |
- | 63) SIGRTMAX-1 64) SIGRTMAX | + | 63) SIGRTMAX-1 |
</ | </ | ||
Ligne 993: | Ligne 1151: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
kill: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] | kill: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] | ||
Send a signal to a job. | Send a signal to a job. | ||
Ligne 1002: | Ligne 1160: | ||
| | ||
Options: | Options: | ||
- | -s sig SIG is a signal name | + | -s sig SIG is a signal name |
- | -n sig SIG is a signal number | + | -n sig SIG is a signal number |
- | -l list the signal names; if arguments follow `-l' they are | + | -l list the signal names; if arguments follow `-l' they are |
- | assumed to be signal numbers for which names should be listed | + | assumed to be signal numbers for which names should be listed |
- | -L synonym for -l | + | -L synonym for -l |
| | ||
Kill is a shell builtin for two reasons: it allows job IDs to be used | Kill is a shell builtin for two reasons: it allows job IDs to be used | ||
Ligne 1021: | Ligne 1179: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
</ | </ | ||
Ligne 1027: | Ligne 1185: | ||
< | < | ||
- | [root@centos8 | + | [root@redhat9 |
Usage: | Usage: | ||
Ligne 1034: | Ligne 1192: | ||
Options: | Options: | ||
| | ||
+ | -q, --queue < | ||
-e, --echo | -e, --echo | ||
-c, --count | -c, --count | ||
Ligne 1042: | Ligne 1201: | ||
-n, --newest | -n, --newest | ||
-o, --oldest | -o, --oldest | ||
+ | -O, --older < | ||
-P, --parent < | -P, --parent < | ||
-s, --session < | -s, --session < | ||
Ligne 1050: | Ligne 1210: | ||
-F, --pidfile < | -F, --pidfile < | ||
-L, --logpidfile | -L, --logpidfile | ||
+ | -r, --runstates < | ||
--ns < | --ns < | ||
| |