Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
elearning:workbooks:debian:10:utilisateur:l104 [2022/05/17 07:59] – created admin | elearning:workbooks:debian:10:utilisateur:l104 [2024/03/11 09:33] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | Version : **2022.01** | + | Version : **2024.01** |
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
- | ======LCF404 | + | ======LDF404 |
=====Contenu du Module===== | =====Contenu du Module===== | ||
- | * **LCF404 | + | * **LDF404 |
* Contenu du Module | * Contenu du Module | ||
* LAB #1 - 38 Commandes de Base | * LAB #1 - 38 Commandes de Base | ||
Ligne 98: | Ligne 98: | ||
=====LAB #1 - 38 Commandes de Base===== | =====LAB #1 - 38 Commandes de Base===== | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo> |
**A faire** - Vous êtes actuellement connecté(e) en tant que root dans votre terminal. Avant de procéder plus loin, tapez la commande exit et appuyez sur la touch < | **A faire** - Vous êtes actuellement connecté(e) en tant que root dans votre terminal. Avant de procéder plus loin, tapez la commande exit et appuyez sur la touch < | ||
</ | </ | ||
Ligne 107: | Ligne 107: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ stty -a |
- | speed 38400 baud; rows 24; columns | + | speed 38400 baud; rows 33; columns |
- | intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = < | + | intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = < |
- | eol2 = < | + | rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0; |
- | werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0; | + | |
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts | -parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts | ||
- | -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff | + | -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel |
- | -iuclc -ixany -imaxbel iutf8 | + | |
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 | opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 | ||
- | isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt | + | isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc |
- | echoctl echoke -flusho -extproc | + | |
</ | </ | ||
Dans l’information qui s’affiche à l’écran, cherchez la chaîne intr =. Si la valeur est «Del», il faut utiliser la touche **Suppr** au lieu de la commande **^C** pour interrompre un programme en cours d’exécution dans un terminal. | Dans l’information qui s’affiche à l’écran, cherchez la chaîne intr =. Si la valeur est «Del», il faut utiliser la touche **Suppr** au lieu de la commande **^C** pour interrompre un programme en cours d’exécution dans un terminal. | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 133: | Ligne 128: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ date |
- | Tue 20 Apr 02:27:55 EDT 2021 | + | Thu 02 Jun 2022 09:34:12 AM CEST |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 148: | Ligne 141: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ who |
- | trainee | + | trainee |
+ | trainee | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 163: | Ligne 155: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ df |
Filesystem | Filesystem | ||
- | devtmpfs | + | udev |
- | tmpfs | + | tmpfs 402560 |
- | tmpfs 1913700 | + | /dev/sda1 |
- | tmpfs | + | tmpfs |
- | / | + | tmpfs |
- | /dev/ | + | tmpfs 402556 |
- | tmpfs 382740 | + | |
</ | </ | ||
Ligne 177: | Ligne 168: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ df -h |
Filesystem | Filesystem | ||
- | devtmpfs | + | udev |
- | tmpfs 1.9G | + | tmpfs 394M 872K 393M |
- | tmpfs | + | /dev/sda1 31G 3.4G |
- | tmpfs 1.9G 0 | + | tmpfs 2.0G 0 |
- | / | + | tmpfs |
- | /dev/ | + | tmpfs 394M |
- | tmpfs 374M | + | |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 199: | Ligne 187: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ free |
- | total used free shared | + | |
- | Mem: | + | Mem: 4025596 |
- | Swap: 2047996 | + | Swap: 998396 |
</ | </ | ||
Ligne 208: | Ligne 196: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ free -h |
- | total used free shared | + | |
- | Mem: 3.6Gi | + | Mem: |
- | Swap: 2.0Gi | + | Swap: |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 225: | Ligne 211: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ whoami |
trainee | trainee | ||
</ | </ | ||
Ligne 232: | Ligne 218: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ su - |
Password: fenestros | Password: fenestros | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez que le mot de passe saisi ne sera PAS visible. | **Important** : Notez que le mot de passe saisi ne sera PAS visible. | ||
</ | </ | ||
Ligne 243: | Ligne 229: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# whoami |
root | root | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez maintenant que vous êtes root. | **Important** : Notez maintenant que vous êtes root. | ||
</ | </ | ||
Ligne 254: | Ligne 240: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# exit |
logout | logout | ||
- | [trainee@centos8 | + | trainee@debian11:~$ |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 270: | Ligne 254: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ pwd |
/ | / | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez la commande **help** avec l' | **A faire** : Utilisez la commande **help** avec l' | ||
</ | </ | ||
Ligne 285: | Ligne 267: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ cd /tmp |
- | [trainee@centos8 | + | trainee@debian11:/tmp$ pwd |
/tmp | /tmp | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez la commande **help** avec l' | **A faire** : Utilisez la commande **help** avec l' | ||
</ | </ | ||
Ligne 302: | Ligne 282: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ ls |
- | systemd-private-d9ff2376a8a44f0392f860d80c839be4-chronyd.service-6im4Ii | + | inode |
+ | ssh-xO6PQly4PEcb | ||
+ | systemd-private-850c80cdbc444b4d9c7cb40b48706231-colord.service-Y3B8Jg | ||
+ | systemd-private-850c80cdbc444b4d9c7cb40b48706231-ModemManager.service-LrTCFg | ||
+ | systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-logind.service-KILQOi | ||
+ | systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-timesyncd.service-it6W3i | ||
+ | systemd-private-850c80cdbc444b4d9c7cb40b48706231-upower.service-mPN3Xg | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 317: | Ligne 301: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ su - |
Password: fenestros | Password: fenestros | ||
- | [root@centos8 | + | root@debian11:~# lsof | more |
- | COMMAND | + | COMMAND |
- | SIZE/ | + | systemd |
- | systemd | + | systemd |
- | 224 128 / | + | systemd |
- | systemd | + | systemd |
- | 224 128 / | + | .0.29.0 |
- | systemd | + | systemd |
- | | + | 1 |
- | systemd | + | systemd |
- | | + | 0.0 |
- | systemd | + | systemd |
- | 628744 | + | .10.1 |
- | systemd | + | systemd |
- | | + | .so |
- | systemd | + | systemd |
- | | + | systemd |
- | systemd | + | 5 |
- | 303944 | + | systemd |
- | systemd | + | 8 |
- | 145984 | + | systemd |
- | systemd | + | systemd |
- | 71528 | + | .0 |
- | systemd | + | systemd |
+ | .2.8 | ||
+ | systemd | ||
+ | .0 | ||
+ | systemd | ||
+ | systemd | ||
+ | .0 | ||
+ | systemd | ||
+ | 253 | ||
+ | systemd | ||
--More-- | --More-- | ||
+ | [q] | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 357: | Ligne 349: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# exit |
logout | logout | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ touch test |
- | [trainee@centos8 | + | trainee@debian11:/tmp$ ls |
- | systemd-private-d9ff2376a8a44f0392f860d80c839be4-chronyd.service-6im4Ii | + | inode |
+ | ssh-xO6PQly4PEcb | ||
+ | systemd-private-850c80cdbc444b4d9c7cb40b48706231-colord.service-Y3B8Jg | ||
+ | systemd-private-850c80cdbc444b4d9c7cb40b48706231-ModemManager.service-LrTCFg | ||
+ | systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-logind.service-KILQOi | ||
+ | systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-timesyncd.service-it6W3i | ||
+ | systemd-private-850c80cdbc444b4d9c7cb40b48706231-upower.service-mPN3Xg | ||
+ | test | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 375: | Ligne 372: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ echo fenestros |
fenestros | fenestros | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez la commande **help** avec l' | **A faire** : Utilisez la commande **help** avec l' | ||
</ | </ | ||
Ligne 390: | Ligne 385: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ cp test ~ |
- | [trainee@centos8 | + | trainee@debian11:/tmp$ ls -l ~ |
- | total 0 | + | total 36 |
- | -rw-rw-r--. 1 trainee trainee 0 Apr 20 03:36 test | + | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Desktop |
+ | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Documents | ||
+ | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Downloads | ||
+ | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Music | ||
+ | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Pictures | ||
+ | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Public | ||
+ | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Templates | ||
+ | -rw-r--r-- 1 trainee trainee | ||
+ | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Videos | ||
+ | -rw-r--r-- 1 trainee trainee | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 411: | Ligne 413: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ file ~/test |
/ | / | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez que la commande vous indique le type de fichier en fonction de son contenu. Dans l' | **Important** : Notez que la commande vous indique le type de fichier en fonction de son contenu. Dans l' | ||
</ | </ | ||
Ligne 422: | Ligne 424: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ echo " |
</ | </ | ||
Ligne 428: | Ligne 430: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ file ~/test |
/ | / | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 443: | Ligne 443: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ cat ~/test |
fenestros | fenestros | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 460: | Ligne 458: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ mv ~/test . |
- | [trainee@centos8 | + | trainee@debian11:/tmp$ ls -l ~ |
- | total 0 | + | total 36 |
- | [trainee@centos8 | + | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Desktop |
- | [trainee@centos8 | + | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Documents |
- | total 4 | + | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Downloads |
- | drwx------. 3 root root | + | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Music |
- | -rw-rw-r--. 1 trainee trainee 10 Apr 20 03:38 TeSt | + | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Pictures |
+ | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Public | ||
+ | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Templates | ||
+ | drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Videos | ||
+ | -rw-r--r-- 1 trainee trainee | ||
+ | trainee@debian11:/tmp$ mv test TeSt | ||
+ | trainee@debian11:/tmp$ ls -l | ||
+ | total 32 | ||
+ | drwxr-xr-x 2 root root 4096 May 10 16:05 inode | ||
+ | drwx------ | ||
+ | drwx------ 3 root root 4096 Jun 2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-colord.service-Y3B8Jg | ||
+ | drwx------ | ||
+ | drwx------ 3 root root 4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-logind.service-KILQOi | ||
+ | drwx------ 3 root root 4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-timesyncd.service-it6W3i | ||
+ | drwx------ 3 root root 4096 Jun 2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-upower.service-mPN3Xg | ||
+ | -rw-r--r-- 1 trainee trainee | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 485: | Ligne 496: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:/tmp$ cd ~ |
- | [trainee@centos8 | + | trainee@debian11:~$ mkdir testdir |
- | [trainee@centos8 | + | trainee@debian11:~$ ls |
- | testdir | + | Desktop |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 502: | Ligne 511: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ rmdir testdir |
- | [trainee@centos8 | + | trainee@debian11:~$ ls |
- | [trainee@centos8 ~]$ | + | Desktop |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 518: | Ligne 525: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ mkdir testdir1 |
- | [trainee@centos8 | + | trainee@debian11:~$ cd /tmp |
- | [trainee@centos8 | + | trainee@debian11:/tmp$ echo " |
- | [trainee@centos8 | + | trainee@debian11:/tmp$ cd ~ |
- | [trainee@centos8 | + | trainee@debian11:~$ mv /tmp/TeSt ~/ |
- | [trainee@centos8 | + | trainee@debian11:~$ ls -lR testdir1/ |
testdir1/: | testdir1/: | ||
total 4 | total 4 | ||
- | -rw-rw-r--. 1 trainee trainee 10 Apr 20 03:44 TeSt | + | -rw-r--r-- 1 trainee trainee 10 Jun 2 10:50 TeSt |
- | [trainee@centos8 | + | trainee@debian11:~$ rmdir testdir1/ |
rmdir: failed to remove ' | rmdir: failed to remove ' | ||
- | [trainee@centos8 | + | trainee@debian11:~$ rm -rf testdir1/ |
- | [trainee@centos8 | + | trainee@debian11:~$ ls |
- | [trainee@centos8 ~]$ | + | Desktop |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 545: | Ligne 550: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ touch aac abc bca xyz |
- | [trainee@centos8 | + | trainee@debian11:~$ ls |
- | aac abc bca xyz | + | aac abc bca |
- | [trainee@centos8 | + | trainee@debian11:~$ ls | sort |
aac | aac | ||
abc | abc | ||
bca | bca | ||
+ | Desktop | ||
+ | Documents | ||
+ | Downloads | ||
+ | Music | ||
+ | Pictures | ||
+ | Public | ||
+ | Templates | ||
+ | Videos | ||
+ | vitext | ||
xyz | xyz | ||
- | [trainee@centos8 | + | trainee@debian11:~$ ls | sort -r |
xyz | xyz | ||
+ | vitext | ||
+ | Videos | ||
+ | Templates | ||
+ | Public | ||
+ | Pictures | ||
+ | Music | ||
+ | Downloads | ||
+ | Documents | ||
+ | Desktop | ||
bca | bca | ||
abc | abc | ||
Ligne 560: | Ligne 583: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 575: | Ligne 596: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ more / |
- | # / | + | |
- | # $Id: services,v 1.49 2017/08/18 12:43:23 ovasik Exp $ | + | |
- | # | + | |
# Network services, Internet style | # Network services, Internet style | ||
- | # IANA services version: last updated 2016-07-08 | ||
# | # | ||
- | # Note that it is presently the policy of IANA to assign a single well-known | + | # Updated from https:// |
- | # port number for both TCP and UDP; hence, most entries here have two entries | + | |
- | # even if the protocol doesn' | + | |
- | # Updated from RFC 1700, ``Assigned Numbers'' | + | |
- | # are included, only the more common ones. | + | |
# | # | ||
- | # The latest IANA port assignments can be gotten from | + | # New ports will be added on request if they have been officially assigned |
- | # http:// | + | # by IANA and used in the real-world or are needed by a debian package. |
- | # The Well Known Ports are those from 0 through 1023. | + | # If you need a huge list of used numbers please install |
- | # The Registered Ports are those from 1024 through 49151 | + | |
- | # The Dynamic and/or Private Ports are those from 49152 through 65535 | + | |
- | # | + | |
- | # Each line describes one service, and is of the form: | + | |
- | # | + | |
- | # service-name | + | |
tcpmux | tcpmux | ||
- | --More--(0%) | + | echo 7/tcp |
+ | echo 7/udp | ||
+ | discard | ||
+ | discard | ||
+ | systat | ||
+ | daytime | ||
+ | daytime | ||
+ | netstat | ||
+ | qotd 17/ | ||
+ | chargen | ||
+ | chargen | ||
+ | ftp-data | ||
+ | ftp | ||
+ | fsp | ||
+ | ssh | ||
+ | telnet | ||
+ | smtp 25/ | ||
+ | time 37/ | ||
+ | time 37/ | ||
+ | whois | ||
+ | tacacs | ||
+ | tacacs | ||
+ | domain | ||
+ | --More--(7%) | ||
+ | [q] | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : L' | **Important** : L' | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 617: | Ligne 646: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ less / |
- | # / | + | |
- | # $Id: services,v 1.49 2017/08/18 12:43:23 ovasik Exp $ | + | |
- | # | + | |
# Network services, Internet style | # Network services, Internet style | ||
- | # IANA services version: last updated 2016-07-08 | ||
# | # | ||
- | # Note that it is presently the policy of IANA to assign a single well-known | + | # Updated from https:// |
- | # port number for both TCP and UDP; hence, most entries here have two entries | + | |
- | # even if the protocol doesn' | + | |
- | # Updated from RFC 1700, ``Assigned Numbers'' | + | |
- | # are included, only the more common ones. | + | |
# | # | ||
- | # The latest IANA port assignments can be gotten from | + | # New ports will be added on request if they have been officially assigned |
- | # http:// | + | # by IANA and used in the real-world or are needed by a debian package. |
- | # The Well Known Ports are those from 0 through 1023. | + | # If you need a huge list of used numbers please install |
- | # The Registered Ports are those from 1024 through 49151 | + | |
- | # The Dynamic and/or Private Ports are those from 49152 through 65535 | + | |
- | # | + | |
- | # Each line describes one service, and is of the form: | + | |
- | # | + | |
- | # service-name | + | |
tcpmux | tcpmux | ||
+ | echo 7/tcp | ||
+ | echo 7/udp | ||
+ | discard | ||
+ | discard | ||
+ | systat | ||
+ | daytime | ||
+ | daytime | ||
+ | netstat | ||
+ | qotd 17/ | ||
+ | chargen | ||
+ | chargen | ||
+ | ftp-data | ||
+ | ftp | ||
+ | fsp | ||
+ | ssh | ||
+ | telnet | ||
+ | smtp 25/ | ||
+ | time 37/ | ||
+ | time 37/ | ||
+ | whois | ||
+ | tacacs | ||
+ | tacacs | ||
+ | domain | ||
/ | / | ||
+ | [q] | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 655: | Ligne 692: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ find acc |
find: ‘acc’: No such file or directory | find: ‘acc’: No such file or directory | ||
- | [trainee@centos8 | + | trainee@debian11:~$ find aac |
aac | aac | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez que si le fichier n' | **Important** : Notez que si le fichier n' | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 676: | Ligne 711: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ su - |
Password: fenestros | Password: fenestros | ||
- | [root@centos8 | + | root@debian11:~# |
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez que le mot de passe saisi ne sera PAS visible. | **Important** : Notez que le mot de passe saisi ne sera PAS visible. | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 694: | Ligne 727: | ||
La commande **locate** sert à rechercher un ou des fichiers dans l' | La commande **locate** sert à rechercher un ou des fichiers dans l' | ||
+ | |||
+ | Commencez par installer le paquet **mlocate** : | ||
+ | |||
+ | < | ||
+ | root@debian11: | ||
+ | </ | ||
La commande **updatedb** peut être configurée en éditant son fichier de configuration **/ | La commande **updatedb** peut être configurée en éditant son fichier de configuration **/ | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# cat / |
- | PRUNE_BIND_MOUNTS = " | + | PRUNE_BIND_MOUNTS=" |
- | PRUNEFS = "9p afs anon_inodefs auto autofs | + | # PRUNENAMES=" |
- | PRUNENAMES = ".git .hg .svn .bzr .arch-ids {arch} CVS" | + | PRUNEPATHS="/ |
- | PRUNEPATHS = "/afs /media /mnt /net /sfs /tmp /udev / | + | PRUNEFS=" |
</ | </ | ||
Ligne 708: | Ligne 747: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# updatedb |
- | [root@centos8 | + | root@debian11:~# locate aac |
/ | / | ||
- | /usr/lib/.build-id/10/3879896070484de2e0eaac453ec43579fbb8e2 | + | /usr/lib/modules/5.10.0-13-amd64/kernel/drivers/ |
- | /usr/lib/.build-id/22/e20bcaaca5ed745d4f5f319ce3cc15e0db8d56 | + | /usr/lib/modules/5.10.0-13-amd64/kernel/drivers/scsi/aacraid/aacraid.ko |
- | /usr/lib/.build-id/ | + | /usr/lib/python3/ |
- | /usr/lib/.build-id/45/bdf33b3fef84664d179d00e997daac1648973b | + | /usr/lib/python3/ |
- | /usr/lib/.build-id/4c/5a4eaaca9035bbc2fbf200bd71eda505b568f2 | + | /usr/lib/python3/ |
- | /usr/lib/.build-id/ | + | /usr/lib/python3/ |
- | /usr/lib/.build-id/55/769aac2caf22de496d9a08e5438d600ff92d6f | + | /usr/lib/x86_64-linux-gnu/libaacs.so.0 |
- | /usr/lib/.build-id/55/e2c36fd33cb232e58642c962aac3eeac1168be | + | /usr/lib/x86_64-linux-gnu/libaacs.so.0.6.0 |
- | /usr/lib/.build-id/ | + | /usr/lib/x86_64-linux-gnu/libvo-aacenc.so.0 |
- | /usr/lib/.build-id/79/ | + | /usr/lib/x86_64-linux-gnu/libvo-aacenc.so.0.0.4 |
- | /usr/lib/.build-id/7e/ec6d530511aac280c13786861e4ec2c04321d9 | + | /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvoaacenc.so |
- | /usr/lib/.build-id/8a/ | + | /usr/share/doc/libaacs0 |
- | /usr/lib/.build-id/8f/0de63d065be5aac7c552cce9412c25e0fa1e3a | + | /usr/share/doc/libvo-aacenc0 |
- | /usr/lib/.build-id/93/8ee8bf115b7e98e9b83a68d8a679cd4a7b0aac | + | /usr/share/doc/libaacs0/KEYDB.cfg.gz |
- | /usr/lib/.build-id/ | + | /usr/share/doc/libaacs0/README.txt |
- | /usr/lib/.build-id/ | + | /usr/share/doc/libaacs0/changelog.Debian.gz |
- | /usr/lib/.build-id/b0/14a927cc892e6c5a8faaca7396a5a1c544f599 | + | /usr/share/doc/libaacs0/changelog.gz |
- | /usr/lib/.build-id/b2/cee7e58576f3167aacb613906c9790c5bcd266 | + | /usr/share/doc/libaacs0/copyright |
- | /usr/lib/.build-id/ea/6926b2fcdbc231b6aa7511c568de704aac79b6 | + | /usr/share/doc/libvo-aacenc0/ |
- | /usr/lib/.build-id/f1/b2efd3d36aecaac279b4a77d00657356b2585f | + | /usr/share/doc/libvo-aacenc0/changelog.Debian.gz |
- | /usr/lib/.build-id/fc/7d382132889a539aac9cd499f1a2b56855bd95 | + | /usr/share/doc/libvo-aacenc0/ |
- | /usr/lib/modules/4.18.0-147.8.1.el8_1.x86_64/ | + | /usr/share/doc/libvo-aacenc0/copyright |
- | /usr/lib/modules/4.18.0-147.8.1.el8_1.x86_64/kernel/ | + | |
- | /usr/lib/modules/4.18.0-240.22.1.el8_3.x86_64/ | + | |
- | /usr/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/ | + | |
/ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
</ | </ | ||
Ligne 742: | Ligne 786: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# ls -l / |
- | -rw-r-----. 1 root slocate 1652822 Apr 20 03:52 / | + | -rw-r----- 1 root mlocate 2518781 Jun 2 10:58 / |
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Pour plus d' | **Important** : Pour plus d' | ||
</ | </ | ||
- | ===Options des commandes=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 761: | Ligne 803: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# whereis passwd |
- | passwd: / | + | passwd: / |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 776: | Ligne 816: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# which passwd |
/ | / | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 791: | Ligne 829: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# uptime |
- | 03:55:13 up 15:50, | + | 11:00:53 up 22 days, 20:23, |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 806: | Ligne 842: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# w |
- | 03:55:16 up 15:50, | + | 11:03:42 up 22 days, 20:26, |
USER | USER | ||
- | trainee | + | trainee |
+ | trainee | ||
</ | </ | ||
Ligne 816: | Ligne 853: | ||
La valeur PCPU indique le temps processeur utilisé par les processus attachés au terminal de la connexion et actuellement en cours (autrement dit le processus identifié dans la colonne **WHAT**). | La valeur PCPU indique le temps processeur utilisé par les processus attachés au terminal de la connexion et actuellement en cours (autrement dit le processus identifié dans la colonne **WHAT**). | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 827: | Ligne 862: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# uname -a |
- | Linux centos8.ittraining.loc 4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 x86_64 x86_64 | + | Linux debian11 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) |
- | [root@centos8 | + | root@debian11:~# uname -s |
Linux | Linux | ||
- | [root@centos8 | + | root@debian11:~# uname -n |
- | centos8.ittraining.loc | + | debian11 |
- | [root@centos8 | + | root@debian11:~# uname -r |
- | 4.18.0-240.22.1.el8_3.x86_64 | + | 5.10.0-13-amd64 |
- | [root@centos8 | + | root@debian11:~# uname -v |
- | #1 SMP Thu Apr 8 19:01:30 UTC 2021 | + | #1 SMP Debian 5.10.106-1 (2022-03-17) |
- | [root@centos8 | + | root@debian11:~# uname -m |
x86_64 | x86_64 | ||
- | [root@centos8 | + | root@debian11:~# uname -p |
- | x86_64 | + | unknown |
- | [root@centos8 | + | root@debian11:~# uname -i |
- | x86_64 | + | unknown |
- | [root@centos8 | + | root@debian11:~# uname -o |
GNU/Linux | GNU/Linux | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 858: | Ligne 891: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# du -sh /* 2>/ |
- | 0 /bin | + | 0 |
- | 192M /boot | + | 58M /boot |
- | 0 /dev | + | 0 |
- | 23M /etc | + | 9.5M |
- | 16K /home | + | 1.4M |
- | 0 /lib | + | 0 / |
- | 0 /lib64 | + | 0 / |
- | 0 /media | + | 0 /lib |
- | 0 /mnt | + | 0 /lib32 |
- | 0 /opt | + | 0 /lib64 |
- | 0 /proc | + | 0 /libx32 |
- | 32K /root | + | 16K / |
- | 8.6M /run | + | 8.0K |
- | 0 /sbin | + | 4.0K |
- | 0 /srv | + | 4.0K |
- | 0 /sys | + | 0 |
- | 0 /tmp | + | 24K /root |
- | 1.9G /usr | + | 992K |
- | 211M /var | + | 0 |
+ | 4.0K | ||
+ | 0 | ||
+ | 84K /tmp | ||
+ | 3.0G | ||
+ | 334M | ||
+ | 0 / | ||
+ | 0 / | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 895: | Ligne 933: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# clear |
- | + | ||
- | [root@centos8 ~]# | + | |
</ | </ | ||
Ligne 905: | Ligne 941: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# exit |
logout | logout | ||
- | [trainee@centos8 | + | trainee@debian11:~$ |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez la commande **help** avec l' | **A faire** : Utilisez la commande **help** avec l' | ||
</ | </ | ||
Ligne 920: | Ligne 954: | ||
Cette commande est utilisée pour se déconnecter d'un terminal de connexion en écrivant les données umtp et wmtp dans les fichiers de journalisation. | Cette commande est utilisée pour se déconnecter d'un terminal de connexion en écrivant les données umtp et wmtp dans les fichiers de journalisation. | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez la commande **help** avec l' | **A faire** : Utilisez la commande **help** avec l' | ||
</ | </ | ||
Ligne 931: | Ligne 963: | ||
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ sleep 10 |
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 945: | Ligne 975: | ||
La commande **wall** | La commande **wall** | ||
- | Ouvrez donc un deuxième terminal via ssh en tant que trainee puis dans le premier envoyez | + | Envoyez |
< | < | ||
- | [trainee@centos8 | + | trainee@debian11:~$ su - |
- | Password: | + | Password: |
- | [root@centos8 | + | root@debian11:~# wall this is a message from root |
- | Broadcast message from trainee@centos8.ittraining.loc | + | Broadcast message from trainee@debian11 |
this is a message from root | this is a message from root | ||
- | [root@centos8 | + | root@debian11:~# |
</ | </ | ||
- | Constatez que le message est affiché dans le deuxième terminal : | + | <WRAP center round todo> |
- | + | **A faire** | |
- | <code> | + | </WRAP> |
- | Activate the web console with: systemctl enable | + | |
- | + | ||
- | Last login: Tue Apr 20 02:21:15 2021 from 10.0.2.2 | + | |
- | + | ||
- | Broadcast message from trainee@centos8.ittraining.loc (pts/0) (Tue Apr 20 04:11 | + | |
- | + | ||
- | this is a message from root | + | |
- | [Enter] | + | |
- | [trainee@centos8 ~]$ | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | Notez que la commande wall ignore | + | |
- | + | ||
- | < | + | |
- | [root@centos8 ~]# date | + | |
- | Tue Apr 20 04:23:19 EDT 2021 | + | |
- | </code> | + | |
====1.37 - La Commande seq==== | ====1.37 - La Commande seq==== | ||
Ligne 992: | Ligne 1004: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# seq 10 |
1 | 1 | ||
2 | 2 | ||
Ligne 1003: | Ligne 1015: | ||
9 | 9 | ||
10 | 10 | ||
- | [root@centos8 | + | root@debian11:~# seq 10 20 |
+ | 10 | ||
+ | 11 | ||
+ | 12 | ||
+ | 13 | ||
+ | 14 | ||
+ | 15 | ||
+ | 16 | ||
+ | 17 | ||
+ | 18 | ||
+ | 19 | ||
20 | 20 | ||
- | 21 | + | root@debian11:~# seq 20 10 90 |
- | 22 | + | |
- | 23 | + | |
- | 24 | + | |
- | 25 | + | |
- | 26 | + | |
- | 27 | + | |
- | 28 | + | |
- | 29 | + | |
- | 30 | + | |
- | [root@centos8 | + | |
20 | 20 | ||
30 | 30 | ||
Ligne 1024: | Ligne 1036: | ||
80 | 80 | ||
90 | 90 | ||
- | [root@centos8 ~]# | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 1037: | Ligne 1046: | ||
La commande **screen** est un « multiplexeur de terminaux » permettant d' | La commande **screen** est un « multiplexeur de terminaux » permettant d' | ||
- | La commande **screen** n'est pas installée par défaut sous RHEL/CentOS 8. Installez donc le paquet du même nom que la commande | + | La commande **screen** n'est pas installée par défaut sous Debian 11. Installez donc le paquet du même nom que la commande : |
< | < | ||
- | [root@centos8 | + | root@debian11:~# which screen |
- | / | + | |
- | [root@centos8 | + | root@debian11:~# apt install screen |
- | CentOS Linux 8 - AppStream | + | |
- | CentOS Linux 8 - BaseOS | + | |
- | CentOS Linux 8 - Extras | + | |
- | Metadata cache created. | + | |
- | [root@centos8 ~]# dnf install screen -y | + | root@debian11:~# which screen |
- | Last metadata expiration check: 0:00:04 ago on Tue 20 Apr 2021 04:33:50 AM EDT. | + | |
- | No match for argument: screen | + | |
- | Error: Unable to find a match: screen | + | |
- | + | ||
- | [root@centos8 ~]# dnf install epel-release -y | + | |
- | ... 1/1 | + | |
- | Installed: | + | |
- | epel-release-8-8.el8.noarch | + | |
- | + | ||
- | Complete! | + | |
- | + | ||
- | [root@centos8 ~]# dnf install screen -y | + | |
- | Extra Packages for Enterprise Linux Modular 8 - x86_64 | + | |
- | Extra Packages for Enterprise Linux 8 - x86_64 | + | |
- | Last metadata expiration check: 0:00:01 ago on Tue 20 Apr 2021 04:36:11 AM EDT. | + | |
- | Dependencies resolved. | + | |
- | ============================================================================================================================================================================================================================================== | + | |
- | | + | |
- | ============================================================================================================================================================================================================================================== | + | |
- | Installing: | + | |
- | | + | |
- | + | ||
- | Transaction Summary | + | |
- | ============================================================================================================================================================================================================================================== | + | |
- | Install | + | |
- | + | ||
- | Total download size: 582 k | + | |
- | Installed size: 971 k | + | |
- | Downloading Packages: | + | |
- | screen-4.6.2-10.el8.x86_64.rpm | + | |
- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | + | |
- | Total 229 kB/s | 582 kB | + | |
- | warning: / | + | |
- | Extra Packages for Enterprise Linux 8 - x86_64 | + | |
- | Importing GPG key 0x2F86D6A1: | + | |
- | | + | |
- | | + | |
- | | + | |
- | Key imported successfully | + | |
- | Running transaction check | + | |
- | Transaction check succeeded. | + | |
- | Running transaction test | + | |
- | Transaction test succeeded. | + | |
- | Running transaction | + | |
- | Preparing | + | |
- | Running scriptlet: screen-4.6.2-10.el8.x86_64 | + | |
- | Installing | + | |
- | Running scriptlet: screen-4.6.2-10.el8.x86_64 | + | |
- | Verifying | + | |
- | + | ||
- | Installed: | + | |
- | screen-4.6.2-10.el8.x86_64 | + | |
- | + | ||
- | Complete! | + | |
- | + | ||
- | [root@centos8 | + | |
/ | / | ||
</ | </ | ||
Ligne 1112: | Ligne 1060: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -S mysession |
</ | </ | ||
- | |||
- | <WRAP center round important 60%> | ||
- | **Important** - Vous verrez en tant que titre de votre terminal la chaîne **[screen 0: root@centos8: | ||
- | </ | ||
- | |||
- | Appuyez maintenant sur < | ||
- | |||
- | <WRAP center round important 60%> | ||
- | **Important** - Vous verrez en tant que titre de votre terminal la chaîne **[screen 1: root@centos8: | ||
- | </ | ||
- | |||
- | Pour repasser au premier screen, appuyez sur < | ||
Pour voir les screens actifs, utilisez la commande suivante : | Pour voir les screens actifs, utilisez la commande suivante : | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -ls |
There is a screen on: | There is a screen on: | ||
- | | + | |
1 Socket in / | 1 Socket in / | ||
</ | </ | ||
Ligne 1139: | Ligne 1075: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# sleep 9999 & |
- | [1] 12187 | + | [1] 22943 |
- | [root@centos8 | + | root@debian11:~# jobs -l |
- | [1]+ 12187 Running | + | [1]+ 22943 Running |
- | [root@centos8 ~]# | + | |
</ | </ | ||
Ligne 1149: | Ligne 1084: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -S mysession |
- | [detached from 12149.mysession] | + | [detached from 22935.mysession] |
- | [root@centos8 | + | root@debian11:~# |
</ | </ | ||
- | <WRAP center round important 60%> | + | Pour rattacher le screen, saisissez la commande |
- | **Important** - Vous verrez en tant que titre de votre terminal la chaîne **root@centos8: | + | |
- | </ | + | |
- | + | ||
- | Pour rattacher le screen, saisissez la commande | + | |
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -r |
</ | </ | ||
- | <WRAP center round important 60%> | + | Vous verrez : |
- | **Important** | + | |
- | </WRAP> | + | <code> |
+ | root@debian11: | ||
+ | There is a screen | ||
+ | 22935.mysession (06/02/2022 11:15:27 AM) (Attached) | ||
+ | 1 Socket in / | ||
+ | root@debian11:~# sleep 9999 & | ||
+ | [1] 22943 | ||
+ | root@debian11: | ||
+ | [1]+ 22943 Running | ||
+ | root@debian11: | ||
+ | </code> | ||
Utilisez la commande jobs pour vérifier si le processus créé par la commande sleep est toujours en cours de fonctionnement : | Utilisez la commande jobs pour vérifier si le processus créé par la commande sleep est toujours en cours de fonctionnement : | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# jobs -l |
- | [1]+ 12187 Running | + | [1]+ 22943 Running |
</ | </ | ||
- | |||
- | Pour naviguer entre les screens il convient d' | ||
Détachez de nouveau le screen actuel en appuyant sur < | Détachez de nouveau le screen actuel en appuyant sur < | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -r |
- | [detached from 12149.mysession] | + | [detached from 22935.mysession] |
- | [root@centos8 | + | root@debian11:~# |
</ | </ | ||
- | |||
- | <WRAP center round important 60%> | ||
- | **Important** - Vous verrez en tant que titre de votre terminal la chaîne **root@centos8: | ||
- | </ | ||
Créez maintenant un autre screen, cette fois-ci, non imbriqué : | Créez maintenant un autre screen, cette fois-ci, non imbriqué : | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -S mysession1 |
</ | </ | ||
Ligne 1198: | Ligne 1133: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -ls |
There are screens on: | There are screens on: | ||
- | | + | |
- | | + | |
2 Sockets in / | 2 Sockets in / | ||
</ | </ | ||
- | <WRAP center round important 60%> | + | Notez cependant que ce screen n'est pas le même que le screen précédent dans lequel vous avez exécuté la commande sleep : |
- | **Important** - Vous verrez en tant que titre de votre terminal la chaîne **[screen 0: root@centos8: | + | |
- | </ | + | |
- | + | ||
- | Notez cependant que ce screen | + | |
< | < | ||
- | [root@centos8 | + | root@debian11:~# jobs -l |
- | [root@centos8 | + | root@debian11:~# |
</ | </ | ||
- | Ratachez maintenant le screen **mysession** : | + | Ratachez maintenant le screen **mysession** |
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -r 22935 |
- | + | ||
- | [root@centos8 ~]# screen -ls | + | |
- | There is a screen on: | + | |
- | 12149.mysession (Attached) | + | |
- | 1 Socket in / | + | |
- | [root@centos8 ~]# sleep 9999 & | + | |
- | [1] 12187 | + | |
- | [root@centos8 ~]# jobs -l | + | |
- | [1]+ 12187 Running | + | |
- | [root@centos8 ~]# jobs -l | + | |
- | [1]+ 12187 Running | + | |
- | [root@centos8 ~]# | + | |
</ | </ | ||
- | |||
- | <WRAP center round important 60%> | ||
- | **Important** - Vous verrez en tant que titre de votre terminal la chaîne **[screen 0: root@centos8: | ||
- | </ | ||
Constatez de nouveau le résultat : | Constatez de nouveau le résultat : | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -ls |
There are screens on: | There are screens on: | ||
- | | + | |
- | | + | |
2 Sockets in / | 2 Sockets in / | ||
</ | </ | ||
- | Détachez-vous du screen en appuyant sur < | + | Détachez-vous du screen en appuyant sur < |
- | + | ||
- | < | + | |
- | [root@centos8 ~]# which screen | + | |
- | / | + | |
- | [root@centos8 ~]# screen -S mysession | + | |
- | [detached from 12149.mysession] | + | |
- | [root@centos8 ~]# screen -r | + | |
- | [detached from 12149.mysession] | + | |
- | [root@centos8 ~]# screen -S mysession1 | + | |
- | [detached from 12191.mysession1] | + | |
- | [root@centos8 ~]# | + | |
- | </ | + | |
- | + | ||
- | <WRAP center round important 60%> | + | |
- | **Important** - Vous verrez en tant que titre de votre terminal la chaîne **root@centos8: | + | |
- | </ | + | |
Constatez de nouveau le résultat : | Constatez de nouveau le résultat : | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -ls |
There are screens on: | There are screens on: | ||
- | 12191.mysession1 (Detached) | + | 23041.mysession1 |
- | 12149.mysession (Attached) | + | 22935.mysession |
2 Sockets in / | 2 Sockets in / | ||
</ | </ | ||
Ligne 1279: | Ligne 1178: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# screen -XS 23041 quit |
- | [root@centos8 | + | root@debian11:~# screen -XS 22935 quit |
- | [root@centos8 | + | root@debian11:~# screen -ls |
No Sockets found in / | No Sockets found in / | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 1305: | Ligne 1202: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# ls -lai /tmp |
- | total 0 | + | total 68 |
- | 16800396 | + | 654081 |
- | 128 dr-xr-xr-x. 17 root root 224 Apr 19 11:50 .. | + | 2 drwxr-xr-x 19 root root |
- | 25447488 | + | 654292 |
- | 8388741 | + | 654290 |
- | 143 drwx------. | + | 785012 drwxr-xr-x |
- | | + | 790319 |
- | | + | 921110 drwx------ |
- | 17319048 drwxrwxrwt. 2 root root 6 Apr 19 11:37 .XIM-unix | + | 921100 drwx------ |
- | [root@centos8 | + | 790929 drwx------ |
- | total 0 | + | 654294 drwx------ |
- | 16800396 | + | 921090 drwx------ |
- | 128 dr-xr-xr-x. 17 root root 224 Apr 19 11:50 .. | + | 654293 drwxrwxrwt |
- | 25447488 | + | 654296 -r--r--r-- |
- | 8388741 | + | 654085 drwxrwxrwt |
- | 143 drwx------. | + | 654304 -r--r--r-- |
- | | + | 654303 -rw------- |
- | | + | 654291 drwxrwxrwt |
- | 17319048 drwxrwxrwt. 2 root root 6 Apr 19 11:37 .XIM-unix | + | root@debian11:~# ls -ali /tmp |
- | [root@centos8 | + | total 68 |
- | total 0 | + | 654081 |
- | 16800396 | + | 2 drwxr-xr-x 19 root root |
- | 128 dr-xr-xr-x. 17 root root 224 Apr 19 11:50 .. | + | 654292 |
- | 25447488 | + | 654290 |
- | 8388741 | + | 785012 drwxr-xr-x |
- | 143 drwx------. | + | 790319 |
- | | + | 921110 drwx------ |
- | | + | 921100 drwx------ |
- | 17319048 drwxrwxrwt. 2 root root 6 Apr 19 11:37 .XIM-unix | + | 790929 drwx------ |
+ | 654294 drwx------ | ||
+ | 921090 drwx------ | ||
+ | 654293 drwxrwxrwt | ||
+ | 654296 -r--r--r-- | ||
+ | 654085 drwxrwxrwt | ||
+ | 654304 -r--r--r-- | ||
+ | 654303 -rw------- | ||
+ | 654291 drwxrwxrwt | ||
+ | root@debian11:~# ls -ial /tmp | ||
+ | total 68 | ||
+ | 654081 | ||
+ | 2 drwxr-xr-x 19 root root | ||
+ | 654292 | ||
+ | 654290 | ||
+ | 785012 drwxr-xr-x | ||
+ | 790319 | ||
+ | 921110 drwx------ | ||
+ | 921100 drwx------ | ||
+ | 790929 drwx------ | ||
+ | 654294 drwx------ | ||
+ | 921090 drwx------ | ||
+ | 654293 drwxrwxrwt | ||
+ | 654296 -r--r--r-- | ||
+ | 654085 drwxrwxrwt | ||
+ | 654304 -r--r--r-- | ||
+ | 654303 -rw------- | ||
+ | 654291 drwxrwxrwt | ||
</ | </ | ||
Ligne 1340: | Ligne 1264: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# ls -l --all --inode /tmp |
- | total 0 | + | total 68 |
- | 16800396 | + | 654081 |
- | 128 dr-xr-xr-x. 17 root root 224 Apr 19 11:50 .. | + | 2 drwxr-xr-x 19 root root |
- | 25447488 | + | 654292 |
- | 8388741 | + | 654290 |
- | 143 drwx------. | + | 785012 drwxr-xr-x |
- | | + | 790319 |
- | | + | 921110 drwx------ |
- | 17319048 drwxrwxrwt. 2 root root 6 Apr 19 11:37 .XIM-unix | + | 921100 drwx------ |
- | [root@centos8 | + | 790929 drwx------ |
+ | 654294 drwx------ | ||
+ | 921090 drwx------ | ||
+ | 654293 drwxrwxrwt | ||
+ | 654296 -r--r--r-- | ||
+ | 654085 drwxrwxrwt | ||
+ | 654304 -r--r--r-- | ||
+ | 654303 -rw------- | ||
+ | 654291 drwxrwxrwt | ||
+ | |||
+ | root@debian11:~# ls -l --allinode /tmp | ||
ls: unrecognized option ' | ls: unrecognized option ' | ||
Try 'ls --help' | Try 'ls --help' | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Les options prenant un argument ne sont pas combinées avec les autres options. | **Important** : Les options prenant un argument ne sont pas combinées avec les autres options. | ||
</ | </ | ||
Ligne 1420: | Ligne 1354: | ||
La commande grep peut être utilisée avec des **Expressions Régulières basiques**. Ceci est utile pour rechercher dans le contenu de fichiers. | La commande grep peut être utilisée avec des **Expressions Régulières basiques**. Ceci est utile pour rechercher dans le contenu de fichiers. | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 1430: | Ligne 1362: | ||
La commande **egrep** est identique à la commande **grep -E**. Dans les deux cas, l' | La commande **egrep** est identique à la commande **grep -E**. Dans les deux cas, l' | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 1440: | Ligne 1370: | ||
La commande **fgrep** est identique à la commande **grep -F**. Dans les deux cas et par défaut la recherche concerne une chaîne de caractères interprétés dans un sens littéral sans utilisation de caractères spéciaux ni d' | La commande **fgrep** est identique à la commande **grep -F**. Dans les deux cas et par défaut la recherche concerne une chaîne de caractères interprétés dans un sens littéral sans utilisation de caractères spéciaux ni d' | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 1451: | Ligne 1379: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# cd /tmp |
- | [root@centos8 | + | root@debian11:/tmp# vi greptest |
- | [root@centos8 | + | root@debian11:/tmp# cat greptest |
fenestrOS | fenestrOS | ||
fenestros | fenestros | ||
Ligne 1466: | Ligne 1394: | ||
< | < | ||
- | [root@centos8 ~]# grep ' | + | root@debian11:/ |
fenestrOS | fenestrOS | ||
fenestros | fenestros | ||
Ligne 1477: | Ligne 1405: | ||
< | < | ||
- | [root@centos8 ~]# grep ' | + | root@debian11:/ |
fenestrOS | fenestrOS | ||
fenestros | fenestros | ||
Ligne 1486: | Ligne 1414: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez la présence de la ligne 555-5555. | **Important** : Notez la présence de la ligne 555-5555. | ||
</ | </ | ||
Ligne 1493: | Ligne 1421: | ||
< | < | ||
- | [root@centos8 ~]# grep ' | + | root@debian11:/ |
555-5555 | 555-5555 | ||
</ | </ | ||
Ligne 1500: | Ligne 1428: | ||
< | < | ||
- | [root@centos8 ~]# grep ' | + | root@debian11:/ |
f | f | ||
£ | £ | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
Ligne 1512: | Ligne 1440: | ||
< | < | ||
- | [root@centos8 ~]# grep ' | + | root@debian11:/ |
.fenestros | .fenestros | ||
.fe | .fe | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : La commande grep peut aussi être utilisée pour rechercher une chaîne dans tous les fichiers d'un répertoire spécifié : **grep -rnw ' | **Important** : La commande grep peut aussi être utilisée pour rechercher une chaîne dans tous les fichiers d'un répertoire spécifié : **grep -rnw ' | ||
</ | </ | ||
Ligne 1528: | Ligne 1456: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# vi greptest |
- | [root@centos8 | + | root@debian11:/tmp# cat greptest |
# Starting comment | # Starting comment | ||
fenestrOS | fenestrOS | ||
Ligne 1548: | Ligne 1476: | ||
< | < | ||
- | [root@centos8 ~]# grep -E -v ' | + | root@debian11:/ |
fenestrOS | fenestrOS | ||
fenestros | fenestros | ||
Ligne 1558: | Ligne 1486: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
Ligne 1565: | Ligne 1493: | ||
< | < | ||
- | [root@centos8 ~]# egrep -v ' | + | root@debian11:/ |
- | [root@centos8 ~]# cat / | + | root@debian11:/ |
fenestrOS | fenestrOS | ||
fenestros | fenestros | ||
Ligne 1576: | Ligne 1504: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Cette commande est particulièrement utile face à un fichier de configuration de plusieurs centaines de lignes dont certaines contiennent des directives activées d' | **Important** : Cette commande est particulièrement utile face à un fichier de configuration de plusieurs centaines de lignes dont certaines contiennent des directives activées d' | ||
</ | </ | ||
Ligne 1583: | Ligne 1511: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# vi greptest |
- | [root@centos8 | + | root@debian11:/tmp# cat greptest |
# Starting comment | # Starting comment | ||
^ This line will be used to demonstrate the use of fgrep | ^ This line will be used to demonstrate the use of fgrep | ||
Ligne 1604: | Ligne 1532: | ||
< | < | ||
- | [root@centos8 ~]# fgrep ' | + | root@debian11:/ |
^ This line will be used to demonstrate the use of fgrep | ^ This line will be used to demonstrate the use of fgrep | ||
</ | </ | ||
Ligne 1611: | Ligne 1539: | ||
< | < | ||
- | [root@centos8 ~]# grep ' | + | root@debian11:/ |
# Starting comment | # Starting comment | ||
^ This line will be used to demonstrate the use of fgrep | ^ This line will be used to demonstrate the use of fgrep | ||
Ligne 1631: | Ligne 1559: | ||
< | < | ||
- | [root@centos8 ~]# grep ' | + | root@debian11:/ |
^ This line will be used to demonstrate the use of fgrep | ^ This line will be used to demonstrate the use of fgrep | ||
</ | </ | ||
Ligne 1670: | Ligne 1598: | ||
===Options de la commande=== | ===Options de la commande=== | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo> |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 1679: | Ligne 1607: | ||
< | < | ||
- | [root@centos8 ~]# sed ' | + | root@debian11:/ |
- | # are included, only the more common ones. | + | |
- | # | + | |
- | # The latest IANA port assignments can be gotten from | + | |
- | # | + | |
- | # The Well Known Ports are those from 0 through 1023. | + | |
- | # The Registered Ports are those from 1024 through 49151 | + | |
- | # The Dynamic and/or Private Ports are those from 49152 through 65535 | + | |
- | # | + | |
- | # Each line describes one service, and is of the form: | + | |
- | # | + | |
- | # service-name | + | |
- | + | ||
- | tcpmux | + | |
- | tcpmux | + | |
- | rje | + | |
- | rje | + | |
- | echo 7/tcp | + | |
echo 7/udp | echo 7/udp | ||
discard | discard | ||
discard | discard | ||
systat | systat | ||
- | systat | ||
daytime | daytime | ||
- | --Plus-- | + | daytime |
+ | netstat | ||
+ | qotd 17/ | ||
+ | chargen | ||
+ | chargen | ||
+ | ftp-data 20/tcp | ||
+ | ftp | ||
+ | fsp | ||
+ | ssh | ||
+ | telnet | ||
+ | smtp 25/ | ||
+ | time 37/ | ||
+ | time 37/ | ||
+ | whois | ||
+ | tacacs | ||
+ | tacacs | ||
+ | domain | ||
+ | domain | ||
+ | bootps | ||
+ | bootpc | ||
+ | tftp 69/udp | ||
+ | gopher | ||
+ | finger | ||
+ | http 80/ | ||
+ | kerberos | ||
+ | kerberos | ||
+ | iso-tsap 102/ | ||
+ | --More-- | ||
+ | [q] | ||
</ | </ | ||
Ligne 1709: | Ligne 1647: | ||
< | < | ||
- | [root@centos8 ~]# sed '/ | + | root@debian11:/ |
tcpmux | tcpmux | ||
- | tcpmux | ||
- | rje | ||
- | rje | ||
echo 7/tcp | echo 7/tcp | ||
echo 7/udp | echo 7/udp | ||
Ligne 1720: | Ligne 1655: | ||
discard | discard | ||
systat | systat | ||
- | systat | ||
daytime | daytime | ||
daytime | daytime | ||
+ | netstat | ||
qotd 17/ | qotd 17/ | ||
- | qotd 17/ | ||
- | msp | ||
- | msp | ||
chargen | chargen | ||
chargen | chargen | ||
ftp-data | ftp-data | ||
- | ftp-data | ||
ftp | ftp | ||
- | ftp 21/ | + | fsp 21/ |
- | --Plus-- | + | ssh |
+ | telnet | ||
+ | smtp 25/ | ||
+ | time 37/ | ||
+ | time 37/ | ||
+ | whois | ||
+ | tacacs | ||
+ | tacacs | ||
+ | domain | ||
+ | domain | ||
+ | bootps | ||
+ | bootpc | ||
+ | tftp 69/udp | ||
+ | gopher | ||
+ | finger | ||
+ | http 80/ | ||
+ | --More-- | ||
+ | [q] | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez que l'ERb est entourée des caractères / et /. | **Important** : Notez que l'ERb est entourée des caractères / et /. | ||
</ | </ | ||
Ligne 1743: | Ligne 1691: | ||
< | < | ||
- | [root@centos8 ~]# sed ' | + | root@debian11:/ |
root: | root: | ||
root: | root: | ||
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
- | daemon:x:2:2:daemon:/sbin:/ | + | bin:x:2:2:bin:/bin:/usr/ |
- | adm:x:3:4:adm:/var/adm:/ | + | sys:x:3: |
- | lp:x:4: | + | sync:x:4:65534: |
- | ... | + | games: |
+ | man: | ||
+ | lp:x:7: | ||
+ | mail: | ||
+ | news: | ||
+ | uucp: | ||
+ | proxy: | ||
+ | www-data: | ||
+ | backup: | ||
+ | list: | ||
+ | irc: | ||
+ | gnats: | ||
+ | nobody: | ||
+ | _apt: | ||
+ | systemd-network: | ||
+ | systemd-resolve: | ||
+ | messagebus: | ||
+ | systemd-timesync: | ||
+ | usbmux: | ||
+ | rtkit: | ||
+ | dnsmasq: | ||
+ | avahi: | ||
+ | speech-dispatcher: | ||
+ | pulse: | ||
+ | saned: | ||
+ | colord: | ||
+ | lightdm: | ||
+ | trainee: | ||
+ | systemd-coredump: | ||
+ | sshd: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez que sed affiche également tout le contenu du fichier. Ceci implique que les lignes 1 et 2 s' | **Important** : Notez que sed affiche également tout le contenu du fichier. Ceci implique que les lignes 1 et 2 s' | ||
</ | </ | ||
Ligne 1761: | Ligne 1738: | ||
< | < | ||
- | [root@centos8 ~]# sed -n ' | + | root@debian11:/ |
root: | root: | ||
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
</ | </ | ||
Ligne 1769: | Ligne 1746: | ||
< | < | ||
- | [root@centos8 ~]# sed -n '/ | + | root@debian11:/ |
- | [root@centos8 ~]# more / | + | root@debian11:/ |
tcpmux | tcpmux | ||
- | tcpmux | ||
- | rje | ||
- | rje | ||
echo 7/tcp | echo 7/tcp | ||
echo 7/udp | echo 7/udp | ||
Ligne 1781: | Ligne 1755: | ||
discard | discard | ||
systat | systat | ||
- | systat | ||
daytime | daytime | ||
daytime | daytime | ||
+ | netstat | ||
qotd 17/ | qotd 17/ | ||
- | qotd 17/ | ||
- | msp | ||
- | msp | ||
chargen | chargen | ||
chargen | chargen | ||
ftp-data | ftp-data | ||
- | ftp-data | ||
ftp | ftp | ||
- | ftp 21/ | + | fsp 21/ |
- | --Plus--(0%) | + | ssh |
+ | telnet | ||
+ | smtp 25/ | ||
+ | time 37/ | ||
+ | time 37/ | ||
+ | whois | ||
+ | tacacs | ||
+ | tacacs | ||
+ | domain | ||
+ | domain | ||
+ | bootps | ||
+ | bootpc | ||
+ | tftp 69/udp | ||
+ | gopher | ||
+ | finger | ||
+ | http 80/ | ||
+ | --More--(6%) | ||
+ | [q] | ||
</ | </ | ||
Ligne 1800: | Ligne 1787: | ||
< | < | ||
- | [root@centos8 ~]# echo " | + | root@debian11:/ |
- | [root@centos8 ~]# cat / | + | root@debian11:/ |
user1 user2 user3 | user1 user2 user3 | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez que dans cet exemple, la commande s est suivi par un argument qui prend la forme /ce qui est à remplacer (caractère, | **Important** : Notez que dans cet exemple, la commande s est suivi par un argument qui prend la forme /ce qui est à remplacer (caractère, | ||
</ | </ | ||
Ligne 1817: | Ligne 1804: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Le couple critère {action} s' | **Important** : Le couple critère {action} s' | ||
</ | </ | ||
Ligne 1840: | Ligne 1827: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# ls -l | awk ' |
- | 05:23rootroot | + | 14:13rootroot |
- | 05: | + | 14: |
- | 05:28rootroot | + | 16: |
- | 05:29rootroot | + | 14: |
- | 12:05rootroot | + | 14:22rootroot |
+ | 09:31traineetrainee | ||
+ | 09:31rootroot | ||
+ | 14: | ||
+ | 14: | ||
+ | 14: | ||
+ | 09: | ||
</ | </ | ||
Ligne 1854: | Ligne 1847: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# ls -l | awk ' |
| | ||
- | 05:23 root root | + | 14:13 root root |
- | 05:21 root root | + | 14:12 root root |
- | 05:28 root root | + | 16:05 root root |
- | 05:29 root root | + | 14:21 root root |
- | 12:05 root root | + | 14:22 root root |
+ | 09:31 trainee trainee | ||
+ | 09:31 root root | ||
+ | 14:37 root root | ||
+ | 14:37 root root | ||
+ | 14:37 root root | ||
+ | 09:31 root root | ||
</ | </ | ||
Ligne 1956: | Ligne 1955: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# cat > scriptawk |
BEGIN { | BEGIN { | ||
print "Liste des systèmes de fichiers montés" | print "Liste des systèmes de fichiers montés" | ||
Ligne 1965: | Ligne 1964: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Dans l' | **Important** : Dans l' | ||
</ | </ | ||
Ligne 1972: | Ligne 1971: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# awk -f scriptawk /etc/mtab |
Liste des systèmes de fichiers montés | Liste des systèmes de fichiers montés | ||
- | sysfs /sys sysfs rw,seclabel, | + | sysfs /sys sysfs rw, |
proc /proc proc rw, | proc /proc proc rw, | ||
- | devtmpfs | + | udev /dev devtmpfs rw,nosuid,relatime,size=1989872k,nr_inodes=497468, |
+ | devpts /dev/pts devpts rw, | ||
+ | tmpfs /run tmpfs rw, | ||
+ | /dev/sda1 / ext4 rw, | ||
securityfs / | securityfs / | ||
- | tmpfs /dev/shm tmpfs rw,seclabel, | + | tmpfs /dev/shm tmpfs rw, |
- | devpts /dev/pts devpts rw, | + | tmpfs /run/lock tmpfs rw, |
- | tmpfs /run tmpfs rw,seclabel, | + | cgroup2 |
- | tmpfs / | + | pstore / |
- | cgroup | + | none /sys/fs/bpf bpf rw, |
- | pstore / | + | systemd-1 |
- | bpf /sys/fs/bpf bpf rw, | + | tracefs |
- | cgroup | + | mqueue |
- | cgroup | + | debugfs |
- | cgroup / | + | hugetlbfs |
- | cgroup / | + | configfs |
- | cgroup | + | fusectl |
- | cgroup | + | tmpfs /run/user/1000 tmpfs rw, |
- | cgroup | + | binfmt_misc |
- | cgroup | + | tracefs |
- | cgroup | + | tmpfs /run/user/113 tmpfs rw, |
- | cgroup | + | |
- | cgroup | + | |
- | none / | + | |
- | configfs / | + | |
- | /dev/sda3 / xfs rw, | + | |
- | selinuxfs / | + | |
- | systemd-1 | + | |
- | debugfs | + | |
- | hugetlbfs | + | |
- | mqueue /dev/mqueue mqueue rw, | + | |
- | /dev/sda1 /boot ext4 rw, | + | |
- | sunrpc / | + | |
- | tmpfs /run/user/1000 tmpfs rw,seclabel, | + | |
- | binfmt_misc / | + | |
- | tracefs / | + | |
===================================== | ===================================== | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
Ligne 2133: | Ligne 2120: | ||
</ | </ | ||
- | ===Options de la commande=== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2144: | Ligne 2129: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# vi sales.txt |
- | [root@centos8 | + | root@debian11:/tmp# cat sales.txt |
# Annual sales by French department | # Annual sales by French department | ||
# 83 | # 83 | ||
Ligne 2171: | Ligne 2156: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# vi sales.awk |
- | [root@centos8 | + | root@debian11:/tmp# cat sales.awk |
# BEGIN | # BEGIN | ||
BEGIN { | BEGIN { | ||
Ligne 2179: | Ligne 2164: | ||
# TABLE | # TABLE | ||
$1 !~ /^#/ && $1 !~ /^$/ { | $1 !~ /^#/ && $1 !~ /^$/ { | ||
- | sales[$1]+=$2 | + | |
} | } | ||
# END | # END | ||
END { | END { | ||
- | for (pc in sales) | + | |
- | printf(" | + | printf(" |
} | } | ||
</ | </ | ||
Ligne 2222: | Ligne 2207: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# awk -f / |
- | PC Type : | + | PC Type : |
- | PC Type : | + | PC Type : |
- | PC Type : Desktops | + | PC Type : Desktops |
- | PC Type : | + | PC Type : |
</ | </ | ||
Ligne 2238: | Ligne 2223: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# vi expand |
- | [root@centos8 | + | root@debian11:/tmp# cat expand |
- | un deux trois quatre cinq | + | un deux trois |
- | un deux trois quatre cinq | + | un deux trois |
- | un deux trois quatre cinq | + | un deux trois |
- | un deux trois quatre cinq | + | un deux trois |
- | un deux trois quatre cinq | + | un deux trois |
- | un deux trois quatre cinq | + | un deux trois |
- | un deux trois quatre cinq | + | un deux trois |
- | un deux trois quatre cinq | + | un deux trois |
- | un deux trois quatre cinq | + | un deux trois |
- | un deux trois quatre cinq | + | un deux trois |
</ | </ | ||
Ligne 2255: | Ligne 2240: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# cat -vet expand |
un^Ideux^Itrois^Iquatre^Icinq$ | un^Ideux^Itrois^Iquatre^Icinq$ | ||
un^Ideux^Itrois^Iquatre^Icinq$ | un^Ideux^Itrois^Iquatre^Icinq$ | ||
Ligne 2268: | Ligne 2253: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Comme vous pouvez constater, les tabulations sont représentées par ^I et les fins de lignes par $. | **Important** : Comme vous pouvez constater, les tabulations sont représentées par ^I et les fins de lignes par $. | ||
</ | </ | ||
Ligne 2275: | Ligne 2260: | ||
< | < | ||
- | [root@centos8 ~]# expand expand > expand1 | + | root@debian11:/ |
</ | </ | ||
Ligne 2281: | Ligne 2266: | ||
< | < | ||
- | [root@centos8 ~]# cat -vet expand1 | + | root@debian11:/ |
un deux trois | un deux trois | ||
un deux trois | un deux trois | ||
Ligne 2294: | Ligne 2279: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Comme vous pouvez constater, les tabulations ont été converties en espaces. | **Important** : Comme vous pouvez constater, les tabulations ont été converties en espaces. | ||
</ | </ | ||
Ligne 2300: | Ligne 2285: | ||
==Options de la commande== | ==Options de la commande== | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo> |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2311: | Ligne 2296: | ||
< | < | ||
- | [root@centos8 ~]# cat -vet expand1 | + | root@debian11:/ |
un deux trois | un deux trois | ||
un deux trois | un deux trois | ||
Ligne 2323: | Ligne 2308: | ||
un deux trois | un deux trois | ||
- | [root@centos8 ~]# unexpand -a expand1 > expand2 | + | root@debian11:/ |
- | [root@centos8 ~]# cat -vet expand2 | + | root@debian11:/ |
un^Ideux^Itrois^Iquatre^Icinq$ | un^Ideux^Itrois^Iquatre^Icinq$ | ||
un^Ideux^Itrois^Iquatre^Icinq$ | un^Ideux^Itrois^Iquatre^Icinq$ | ||
Ligne 2338: | Ligne 2323: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez que les espaces ont été remplacés par des tabulations. | **Important** : Notez que les espaces ont été remplacés par des tabulations. | ||
</ | </ | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2357: | Ligne 2340: | ||
< | < | ||
- | [root@centos8 | + | oot@debian11:/tmp# cut -c1-7 /etc/passwd |
root:x: | root:x: | ||
- | bin:x:1 | ||
daemon: | daemon: | ||
- | adm:x:3 | + | bin:x:2 |
- | lp:x:4: | + | sys:x:3 |
sync:x: | sync:x: | ||
- | shutdow | ||
- | halt:x: | ||
- | mail:x: | ||
- | operato | ||
games:x | games:x | ||
- | ftp:x:1 | + | man:x:6 |
+ | lp:x:7: | ||
+ | mail:x: | ||
+ | news:x: | ||
+ | uucp:x: | ||
+ | proxy:x | ||
+ | www-dat | ||
+ | backup: | ||
+ | list:x: | ||
+ | irc:x:3 | ||
+ | gnats:x | ||
nobody: | nobody: | ||
- | dbus:x: | + | _apt:x: |
systemd | systemd | ||
systemd | systemd | ||
- | tss:x:5 | + | message |
- | polkitd | + | systemd |
- | unbound | + | usbmux: |
- | libstor | + | rtkit:x |
- | cockpit | + | |
- | sssd:x: | + | |
- | setroub | + | |
- | sshd:x: | + | |
- | chrony: | + | |
- | tcpdump | + | |
- | trainee | + | |
- | cockpit | + | |
- | rngd:x: | + | |
- | gluster | + | |
- | qemu:x: | + | |
- | rpc:x:3 | + | |
- | rpcuser | + | |
- | saslaut | + | |
- | radvd:x | + | |
dnsmasq | dnsmasq | ||
+ | avahi:x | ||
+ | speech- | ||
+ | pulse:x | ||
+ | saned:x | ||
+ | colord: | ||
+ | lightdm | ||
+ | trainee | ||
+ | systemd | ||
+ | sshd:x: | ||
</ | </ | ||
Ligne 2399: | Ligne 2381: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# cut -c1-5, |
root: | root: | ||
- | bin:x:bin:/gin | + | daemo1:1:da:/usr/sbin/nologin |
- | daemo2: | + | bin:x:bin:/nologin |
- | adm:x:adm:/nologin | + | sys:x:sys:/nologin |
- | lp:x:lp:/vabin/nologin | + | sync:65534:/sync |
- | sync:0:syncnc | + | games:60:ga:/ |
- | shutdx:6:0::/sbin/shutdown | + | man:x2: |
- | halt:0:haltalt | + | lp:x:lp:/ |
- | mail:12:maiail:/ | + | mail:8:mailr/ |
- | operax:11:0t:/ | + | news:9:newsws:/usr/ |
- | games2:100:es:/ | + | uucp::10:uuuucp:/usr/ |
- | ftp:x50:FTP:/ | + | proxy3:13:p/ |
- | nobod65534:verflow User:/:/ | + | www-dx:33:3r/www:/usr/ |
- | dbus::81:Syus:/:/ | + | backu34:34:ckups:/usr/ |
- | systeoredumstemd Core Dumper:/:/ | + | list:: |
- | systeesolvetemd Resolver:/:/ | + | irc:x39:ircsr/ |
- | tss:x59:Acche trousers package to sandbox the tcsd daemon:/dev/null:/ | + | gnats1:41:Gting System (admin):/var/lib/gnats:/usr/ |
- | polki:998:9lkitd:/:/ | + | nobod65534:nonexistent:/usr/ |
- | unbou:997:9 resolver:/etc/ | + | _apt:0:6553t:/usr/ |
- | libstemgmt: | + | systeetworktemd Network Management,,, |
- | cockps:x:99 cockpit-ws:/nonexisting:/ | + | systeesolvetemd Resolver,,,:/run/systemd:/usr/ |
- | sssd:4:990:/:/ | + | messas:x:10stent:/usr/ |
- | setroshoot:r/lib/setroubleshoot:/ | + | systeimesynstemd Time Synchronization,,, |
- | sshd::74:Prted SSH:/var/empty/sshd:/ | + | usbmu105:46,,,:/var/lib/usbmux:/usr/ |
- | chron992:98rony:/ | + | rtkit06:113,:/proc:/usr/ |
- | tcpdu:72:72gin | + | dnsma:107:6,:/var/lib/misc:/usr/ |
- | train:1000:home/trainee:/bin/bash | + | avahi08:114emon,,,:/run/avahi-daemon:/usr/ |
- | cockpsinstaUser for cockpit-ws instances:/nonexisting: | + | speecspatcheech Dispatcher,,, |
- | rngd:0:986:Generator Daemon:/var/lib/rngd:/ | + | pulse10:116emon,,,:/run/pulse:/usr/ |
- | glust:989:9aemons:/run/gluster:/ | + | saned11:119ed:/usr/sbin/nologin |
- | qemu:7:107:bin/nologin | + | color112:12r management daemon,,,:/var/lib/colord:/usr/ |
- | rpc:x32:Rpcar/lib/rpcbind:/ | + | light:113:1ay Manager:/var/lib/lightdm:/bin/false |
- | rpcus:29:29ser:/var/lib/nfs:/sbin/nologin | + | train:1000:,:/home/trainee:/bin/bash |
- | saslax:988:ser:/run/saslauthd:/sbin/nologin | + | systeoredumstemd Core Dumper:/:/usr/sbin/nologin |
- | radvd5:75:rbin/nologin | + | sshd:4:6553usr/sbin/nologin |
- | dnsma:983:9P and DNS server:/ | + | |
</ | </ | ||
Ligne 2441: | Ligne 2422: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# cut -d: -f2,4,6 /etc/passwd |
x:0:/root | x:0:/root | ||
- | x:1:/bin | + | x:1:/usr/sbin |
- | x:2:/sbin | + | x:2:/bin |
- | x:4:/var/adm | + | x:3:/dev |
+ | x: | ||
+ | x: | ||
+ | x:12:/var/cache/man | ||
x: | x: | ||
- | x:0:/sbin | + | x:8:/var/mail |
- | x:0:/sbin | + | x:9:/var/ |
- | x:0:/sbin | + | x: |
- | x:12:/var/spool/mail | + | x:13:/bin |
- | x:0:/root | + | x:33:/var/www |
- | x:100:/usr/games | + | x:34:/var/backups |
- | x:50:/var/ftp | + | x:38:/var/list |
- | x:65534:/ | + | x:39:/run/ircd |
- | x:81:/ | + | x:41:/var/lib/gnats |
- | x:997:/ | + | x:65534:/nonexistent |
- | x:193:/ | + | x:65534:/nonexistent |
- | x:59:/dev/null | + | x:102:/run/systemd |
- | x:996:/ | + | x:103:/run/systemd |
- | x:994:/etc/unbound | + | x:109:/nonexistent |
- | x:993:/var/run/lsm | + | x:110:/run/systemd |
- | x:991:/nonexisting | + | x:46:/var/lib/usbmux |
- | x:990:/ | + | x:113:/proc |
- | x:989:/var/lib/setroubleshoot | + | x:65534:/var/lib/misc |
- | x:74:/var/empty/sshd | + | x:114:/run/ |
- | x:988:/var/lib/chrony | + | x:29:/run/ |
- | x:72:/ | + | x:116:/run/pulse |
+ | x:119:/var/lib/saned | ||
+ | x:120:/var/lib/colord | ||
+ | x:121:/var/ | ||
x: | x: | ||
- | x:987:/nonexisting | + | x:999:/ |
- | x:986:/ | + | x:65534:/run/sshd |
- | x:985:/run/gluster | + | |
- | x:107:/ | + | |
- | x: | + | |
- | x: | + | |
- | x: | + | |
- | x:75:/ | + | |
- | x: | + | |
</ | </ | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2491: | Ligne 2469: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# cut -d: -f4 /etc/passwd | sort -n | uniq |
0 | 0 | ||
1 | 1 | ||
2 | 2 | ||
- | 4 | + | 3 |
7 | 7 | ||
+ | 8 | ||
+ | 9 | ||
+ | 10 | ||
12 | 12 | ||
+ | 13 | ||
29 | 29 | ||
- | 32 | + | 33 |
- | 50 | + | 34 |
- | 59 | + | 38 |
- | 72 | + | 39 |
- | 74 | + | 41 |
- | 75 | + | 46 |
- | 76 | + | 60 |
- | 81 | + | 102 |
- | 100 | + | 103 |
- | 107 | + | 109 |
- | 193 | + | 110 |
- | 983 | + | 113 |
- | 985 | + | 114 |
- | 986 | + | 116 |
- | 987 | + | 119 |
- | 988 | + | 120 |
- | 989 | + | 121 |
- | 990 | + | 999 |
- | 991 | + | |
- | 993 | + | |
- | 994 | + | |
- | 996 | + | |
- | 997 | + | |
1000 | 1000 | ||
65534 | 65534 | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2541: | Ligne 2516: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# cat /etc/passwd | tr " |
ROOT: | ROOT: | ||
- | BIN:X:1:1:BIN:/BIN:/ | + | DAEMON:X:1:1:DAEMON:/USR/SBIN:/USR/ |
- | DAEMON:X:2:2:DAEMON:/SBIN:/ | + | BIN:X:2:2:BIN:/BIN:/USR/ |
- | ADM:X:3:4:ADM:/VAR/ADM:/ | + | SYS:X:3:3:SYS:/DEV:/USR/ |
- | LP:X:4:7:LP:/VAR/ | + | SYNC:X:4:65534:SYNC:/BIN:/BIN/SYNC |
- | SYNC:X:5:0:SYNC:/SBIN:/BIN/SYNC | + | GAMES:X:5:60:GAMES:/USR/GAMES:/USR/SBIN/ |
- | SHUTDOWN:X:6:0:SHUTDOWN:/SBIN:/SBIN/SHUTDOWN | + | MAN:X:6:12:MAN:/VAR/ |
- | HALT:X:7:0:HALT:/SBIN:/SBIN/HALT | + | LP:X:7:7:LP:/VAR/ |
- | MAIL:X:8:12:MAIL:/VAR/SPOOL/ | + | MAIL:X:8:8: |
- | OPERATOR:X:11:0:OPERATOR:/ROOT:/SBIN/NOLOGIN | + | NEWS:X:9:9:NEWS:/VAR/SPOOL/NEWS:/ |
- | GAMES: | + | UUCP:X:10:10:UUCP:/VAR/SPOOL/UUCP:/USR/ |
- | FTP:X:14:50:FTP USER:/VAR/FTP:/ | + | PROXY:X:13:13:PROXY:/BIN:/USR/ |
- | NOBODY:X:65534:65534:KERNEL OVERFLOW USER:/:/ | + | WWW-DATA:X:33:33:WWW-DATA:/VAR/WWW:/USR/ |
- | DBUS:X:81:81:SYSTEM MESSAGE BUS:/:/ | + | BACKUP:X:34:34:BACKUP:/VAR/BACKUPS:/USR/ |
- | SYSTEMD-COREDUMP:X:999:997:SYSTEMD CORE DUMPER:/:/ | + | LIST:X:38:38:MAILING LIST MANAGER:/VAR/LIST:/USR/ |
- | SYSTEMD-RESOLVE:X:193:193:SYSTEMD RESOLVER:/:/ | + | IRC:X:39:39:IRCD:/RUN/IRCD:/USR/ |
- | TSS:X:59:59:ACCOUNT USED BY THE TROUSERS PACKAGE TO SANDBOX THE TCSD DAEMON:/DEV/NULL:/ | + | GNATS:X:41:41:GNATS BUG-REPORTING SYSTEM (ADMIN):/VAR/ |
- | POLKITD:X:998:996:USER FOR POLKITD:/:/ | + | NOBODY:X:65534:65534:NOBODY:/NONEXISTENT:/USR/ |
- | UNBOUND:X:997:994:UNBOUND DNS RESOLVER:/ETC/UNBOUND:/ | + | _APT:X:100:65534::/NONEXISTENT:/USR/ |
- | LIBSTORAGEMGMT:X:996:993:DAEMON ACCOUNT FOR LIBSTORAGEMGMT:/VAR/RUN/LSM:/ | + | SYSTEMD-NETWORK:X:101:102:SYSTEMD NETWORK MANAGEMENT,,, |
- | COCKPIT-WS:X:995:991:USER FOR COCKPIT-WS:/NONEXISTING:/ | + | SYSTEMD-RESOLVE:X:102:103:SYSTEMD RESOLVER,,,:/RUN/SYSTEMD:/USR/ |
- | SSSD:X:994:990:USER FOR SSSD:/:/ | + | MESSAGEBUS:X:103:109::/NONEXISTENT:/USR/ |
- | SETROUBLESHOOT:X:993:989::/VAR/ | + | SYSTEMD-TIMESYNC:X:104:110:SYSTEMD TIME SYNCHRONIZATION,,, |
- | SSHD:X:74:74:PRIVILEGE-SEPARATED SSH:/VAR/EMPTY/SSHD:/ | + | USBMUX:X:105:46:USBMUX DAEMON,,,:/VAR/LIB/USBMUX:/USR/ |
- | CHRONY:X:992:988::/VAR/LIB/CHRONY:/ | + | RTKIT:X:106:113:REALTIMEKIT,,, |
- | TCPDUMP:X:72:72::/:/ | + | DNSMASQ:X:107:65534:DNSMASQ,,,:/VAR/LIB/MISC:/USR/SBIN/ |
- | TRAINEE:X:1000:1000:TRAINEE:/HOME/TRAINEE:/BIN/BASH | + | AVAHI:X:108:114:AVAHI MDNS DAEMON,,,:/RUN/ |
- | COCKPIT-WSINSTANCE:X:991:987:USER FOR COCKPIT-WS INSTANCES:/NONEXISTING:/ | + | SPEECH-DISPATCHER:X:109:29:SPEECH DISPATCHER,,, |
- | RNGD:X:990:986:RANDOM NUMBER GENERATOR DAEMON:/VAR/LIB/RNGD:/SBIN/NOLOGIN | + | PULSE:X:110:116:PULSEAUDIO DAEMON,,,:/RUN/PULSE:/USR/ |
- | GLUSTER:X:989:985:GLUSTERFS DAEMONS:/RUN/GLUSTER:/ | + | SANED:X:111:119::/VAR/ |
- | QEMU:X:107:107:QEMU USER:/:/ | + | COLORD:X:112:120:COLORD COLOUR MANAGEMENT |
- | RPC:X:32:32:RPCBIND | + | LIGHTDM:X:113:121:LIGHT DISPLAY MANAGER:/VAR/LIB/LIGHTDM:/BIN/FALSE |
- | RPCUSER:X:29:29:RPC SERVICE USER:/VAR/LIB/NFS:/SBIN/NOLOGIN | + | TRAINEE:X:1000:1000:TRAINEE,,,:/HOME/TRAINEE:/BIN/BASH |
- | SASLAUTH:X:988:76:SASLAUTHD USER:/RUN/SASLAUTHD:/SBIN/NOLOGIN | + | SYSTEMD-COREDUMP:X:999:999:SYSTEMD CORE DUMPER:/:/USR/ |
- | RADVD:X:75:75:RADVD USER:/:/ | + | SSHD:X:114:65534::/RUN/SSHD:/USR/ |
- | DNSMASQ:X:983:983:DNSMASQ DHCP AND DNS SERVER:/VAR/LIB/DNSMASQ:/ | + | |
</ | </ | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2591: | Ligne 2563: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# paste -d: /etc/passwd / |
- | root: | + | root: |
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
- | daemon:x:2:2:daemon:/sbin:/ | + | bin:x:2:2:bin:/bin:/usr/ |
- | adm:x:3:4:adm:/var/adm:/ | + | sys:x:3:3:sys:/dev:/usr/ |
- | lp:x:4:7:lp:/var/ | + | sync:x:4:65534:sync:/bin:/bin/sync:sync:*:19107: |
- | sync:x:5:0:sync:/sbin:/bin/sync:sync:*:18264: | + | games:x:5:60:games:/usr/games:/usr/sbin/ |
- | shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown:shutdown:*:18264: | + | man:x:6:12:man:/var/ |
- | halt:x:7:0:halt:/sbin:/sbin/halt:halt:*:18264: | + | lp:x:7:7:lp:/var/ |
- | mail:x:8:12:mail:/var/spool/ | + | mail:x:8:8: |
- | operator:x:11:0:operator:/root:/ | + | news:x:9:9:news:/var/ |
- | games:x:12:100:games:/usr/games:/ | + | uucp:x:10:10:uucp:/var/spool/uucp:/usr/ |
- | ftp:x:14:50:FTP User:/var/ftp:/ | + | proxy:x:13:13:proxy:/bin:/usr/ |
- | nobody:x:65534:65534:Kernel Overflow User:/:/ | + | www-data:x:33:33:www-data:/var/www:/usr/ |
- | dbus:x:81:81:System message bus:/:/ | + | backup:x:34:34:backup:/var/backups:/usr/ |
- | systemd-coredump:x:999:997:systemd Core Dumper:/:/ | + | list:x:38:38:Mailing List Manager:/var/list:/usr/ |
- | systemd-resolve:x:193:193:systemd Resolver:/:/ | + | irc:x:39:39:ircd:/run/ircd:/usr/ |
- | tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/ | + | gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/ |
- | polkitd:x:998:996:User for polkitd:/:/ | + | nobody:x:65534:65534:nobody:/nonexistent:/usr/ |
- | unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/ | + | _apt:x:100:65534::/nonexistent:/usr/ |
- | libstoragemgmt:x:996:993:daemon account for libstoragemgmt:/var/run/lsm:/ | + | systemd-network:x:101:102:systemd Network Management,,, |
- | cockpit-ws:x:995:991:User for cockpit-ws:/nonexisting:/ | + | systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/ |
- | sssd:x:994:990:User for sssd:/:/ | + | messagebus:x:103:109::/nonexistent:/usr/ |
- | setroubleshoot:x:993:989::/var/lib/ | + | systemd-timesync:x:104:110:systemd Time Synchronization,,, |
- | sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/ | + | usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/ |
- | chrony:x:992:988::/var/lib/chrony:/ | + | rtkit:x:106:113:RealtimeKit,,, |
- | tcpdump:x:72:72::/:/ | + | dnsmasq:x:107:65534:dnsmasq,,,:/var/ |
- | trainee:x:1000:1000:trainee:/home/trainee:/bin/bash:trainee:$6$p4HOAHX7UAzw1nQh$VZL12Lye.mR8v1IP2e4f0PCW8DzHj2MMAaA7r2ZLoTnQN7Ziskce3bo/ | + | avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/sbin/ |
- | cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/sbin/nologin:cockpit-wsinstance:!!:18736:::::: | + | speech-dispatcher:x:109:29:Speech Dispatcher,,, |
- | rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/ | + | pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/ |
- | gluster:x:989:985:GlusterFS daemons:/run/gluster:/sbin/ | + | saned:x:111:119::/var/lib/saned:/usr/ |
- | qemu: | + | colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/ |
- | rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/ | + | lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false:lightdm:*:19107:0:99999:7::: |
- | rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin:rpcuser:!!:18736:::::: | + | trainee:x:1000:1000:trainee,,,:/home/trainee:/bin/bash:trainee:$y$j9T$iKJ5MC8LmULY.yq58DCjw1$WsIdItQEonaSeCFZil61bk4YPxSp1.5aFg0uDhwIbZC:19107:0:99999:7::: |
- | saslauth:x:988:76:Saslauthd user:/run/saslauthd:/sbin/nologin:saslauth:!!:18736:::::: | + | systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/ |
- | radvd:x:75:75:radvd user:/:/ | + | sshd:x:114:65534::/run/sshd:/usr/ |
- | dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/ | + | |
</ | </ | ||
- | + | <WRAP center round todo> | |
- | ==Options de la commande== | + | |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2644: | Ligne 2612: | ||
< | < | ||
- | [root@centos8 | + | oot@debian11:/tmp# dd if=/ |
250+0 records in | 250+0 records in | ||
250+0 records out | 250+0 records out | ||
- | 262144000 bytes (262 MB, 250 MiB) copied, 0.143522 | + | 262144000 bytes (262 MB, 250 MiB) copied, 0.23014 s, 1.1 GB/s |
</ | </ | ||
Ligne 2653: | Ligne 2621: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# split -b 50m /file filepart |
- | [root@centos8 | + | root@debian11:/tmp# ls -l | grep filepart |
- | -rw-r--r--. 1 root root 52428800 | + | -rw-r--r-- 1 root root 52428800 |
- | -rw-r--r--. 1 root root 52428800 | + | -rw-r--r-- 1 root root 52428800 |
- | -rw-r--r--. 1 root root 52428800 | + | -rw-r--r-- 1 root root 52428800 |
- | -rw-r--r--. 1 root root 52428800 | + | -rw-r--r-- 1 root root 52428800 |
- | -rw-r--r--. 1 root root 52428800 | + | -rw-r--r-- 1 root root 52428800 |
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez que cinq morceaux ont été créés dans le répertoire courant. Si aucune taille n'est spécifiée, | **Important** : Notez que cinq morceaux ont été créés dans le répertoire courant. Si aucune taille n'est spécifiée, | ||
</ | </ | ||
Ligne 2669: | Ligne 2637: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# cat fileparta* > newfile |
- | [root@centos8 | + | root@debian11:/tmp# ls -l | grep newf |
- | -rw-r--r--. 1 root root 262144000 | + | -rw-r--r-- 1 root root 262144000 |
- | [root@centos8 | + | root@debian11:/tmp# ls -l / | grep file |
- | -rw-r--r--. 1 root root 262144000 | + | -rw-r--r-- |
</ | </ | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2689: | Ligne 2655: | ||
< | < | ||
- | [root@centos8 ~]# cp /etc/passwd /root | + | root@debian11:/ |
+ | root@debian11:/ | ||
+ | root@debian11: | ||
</ | </ | ||
Ligne 2696: | Ligne 2664: | ||
< | < | ||
... | ... | ||
- | trainee10: | + | trainee10: |
... | ... | ||
</ | </ | ||
- | Supprimez la ligne **tcpdump** dans le fichier / | + | Supprimez la ligne **lp** dans le fichier / |
< | < | ||
Ligne 2706: | Ligne 2674: | ||
Linux est super! | Linux est super! | ||
</ | </ | ||
+ | |||
+ | Vous obtiendrez : | ||
+ | |||
+ | < | ||
+ | root@debian11: | ||
+ | root@debian11: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | 10 uucp: | ||
+ | 11 proxy: | ||
+ | 12 www-data: | ||
+ | 13 backup: | ||
+ | 14 list: | ||
+ | 15 irc: | ||
+ | 16 gnats: | ||
+ | 17 nobody: | ||
+ | 18 _apt: | ||
+ | 19 systemd-network: | ||
+ | 20 systemd-resolve: | ||
+ | 21 messagebus: | ||
+ | 22 systemd-timesync: | ||
+ | 23 usbmux: | ||
+ | 24 rtkit: | ||
+ | 25 dnsmasq: | ||
+ | 26 avahi: | ||
+ | 27 speech-dispatcher: | ||
+ | 28 pulse: | ||
+ | 29 saned: | ||
+ | 30 colord: | ||
+ | 31 lightdm: | ||
+ | 32 trainee10: | ||
+ | 33 systemd-coredump: | ||
+ | 34 sshd: | ||
+ | 35 Linux is great! | ||
+ | </ | ||
Comparez maintenant les deux fichiers : | Comparez maintenant les deux fichiers : | ||
< | < | ||
- | [root@centos8 tmp]# diff /etc/passwd / | + | root@debian11:~# diff /etc/passwd / |
- | 26,27c26 | + | 8d7 |
- | < tcpdump:x:72:72::/:/ | + | < lp:x:7:7:lp:/var/ |
- | < trainee: | + | 33c32 |
+ | < trainee: | ||
--- | --- | ||
- | > trainee10: | + | > trainee10: |
- | 36a36 | + | 35a35 |
- | > Linux est super! | + | > Linux is great! |
</ | </ | ||
Dans cette sortie on constate le caractère **<** et le caractère **>**. Le premier indique le premier fichier qui a suivi la commande **diff** tandis que le deuxième indique le deuxième fichier. | Dans cette sortie on constate le caractère **<** et le caractère **>**. Le premier indique le premier fichier qui a suivi la commande **diff** tandis que le deuxième indique le deuxième fichier. | ||
- | Le message | + | Le message |
- | Le message | + | Le message |
- | ==Options de la commande== | + | Le message 35a35 indique qu' |
- | <WRAP center round todo 60%> | + | <WRAP center round todo> |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2737: | Ligne 2748: | ||
< | < | ||
- | [root@centos8 tmp]# cmp / | + | root@debian11:~# cmp / |
- | / | + | / |
</ | </ | ||
Ligne 2744: | Ligne 2755: | ||
< | < | ||
- | [root@centos8 tmp]# cmp -l / | + | root@debian11:~# cmp -l / |
- | cmp: EOF on / | + | cmp: EOF on / |
- | 1300 162 143 | + | 286 155 154 |
- | 1301 141 160 | + | 287 141 160 |
- | 1302 151 144 | + | 288 151 72 |
- | 1303 156 165 | + | 289 154 170 |
- | 1304 145 155 | + | 291 170 67 |
- | 1305 145 160 | + | 293 70 67 |
- | 1306 61 72 | + | 295 70 154 |
- | 1307 60 170 | + | |
- | 1309 170 67 | + | 297 155 72 |
- | 1310 72 62 | + | 298 141 57 |
- | 1311 61 72 | + | 299 151 166 |
- | 1312 60 67 | + | 300 154 141 |
- | 1313 60 62 | + | |
- | 1314 60 72 | + | 303 166 163 |
- | 1316 61 57 | + | 304 141 160 |
- | 1317 60 72 | + | 305 162 157 |
- | 1318 60 57 | + | |
- | 1319 60 163 | + | 307 155 154 |
- | 1320 72 142 | + | 308 141 57 |
- | 1321 164 151 | + | 309 151 154 |
- | 1322 162 156 | + | 310 154 160 |
- | 1323 141 57 | + | |
- | 1324 151 156 | + | 312 |
+ | 313 165 57 | ||
+ | 314 163 165 | ||
+ | 315 162 163 | ||
+ | 316 57 162 | ||
+ | 317 163 57 | ||
+ | | ||
+ | 319 151 142 | ||
+ | 320 156 151 | ||
+ | 321 57 156 | ||
--More-- | --More-- | ||
+ | [q] | ||
</ | </ | ||
La première colonne représente le numéro de caractère, la deuxième la valeur octale ASCII du caractère dans le fichier / | La première colonne représente le numéro de caractère, la deuxième la valeur octale ASCII du caractère dans le fichier / | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2784: | Ligne 2803: | ||
La commande **patch** est utilisée pour appliquer des modifications à un fichier à partir d'un fichier patch qui contient les différences entre le contenu de l' | La commande **patch** est utilisée pour appliquer des modifications à un fichier à partir d'un fichier patch qui contient les différences entre le contenu de l' | ||
- | La commande patch n'est pas installée par défaut sous RHEL/CentOS 8 : | + | La commande patch n'est pas installée par défaut sous Debian 11 : |
< | < | ||
- | [root@centos8 | + | root@debian11:~# which patch |
+ | root@debian11: | ||
+ | root@debian11: | ||
</ | </ | ||
Ligne 2793: | Ligne 2814: | ||
< | < | ||
- | [root@centos8 tmp]# cat / | + | root@debian11:~# cat / |
# Starting comment | # Starting comment | ||
^ This line will be used to demonstrate the use of fgrep | ^ This line will be used to demonstrate the use of fgrep | ||
Ligne 2808: | Ligne 2829: | ||
£ | £ | ||
# End comment | # End comment | ||
- | [root@centos8 tmp]# cat / | + | |
+ | root@debian11:~# cat / | ||
fenestrOS | fenestrOS | ||
fenestros | fenestros | ||
Ligne 2821: | Ligne 2843: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:~# cd /tmp |
+ | root@debian11:/ | ||
</ | </ | ||
Ligne 2827: | Ligne 2850: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# cat greptest.patch |
- | --- greptest 2021-04-20 05:23:52.710188632 -0400 | + | --- greptest |
- | +++ greptest1 2021-04-20 05:21:55.189882834 -0400 | + | +++ greptest1 |
@@ -1,14 +1,7 @@ | @@ -1,14 +1,7 @@ | ||
-# Starting comment | -# Starting comment | ||
Ligne 2850: | Ligne 2873: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# patch < greptest.patch |
patching file greptest | patching file greptest | ||
</ | </ | ||
Ligne 2857: | Ligne 2880: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# cat greptest |
fenestrOS | fenestrOS | ||
fenestros | fenestros | ||
Ligne 2867: | Ligne 2890: | ||
</ | </ | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 2876: | Ligne 2897: | ||
La commande **strings** est utilisée pour trouver toutes les chaînes de caractères qui peuvent être imprimés dans un ou plusieurs fichiers objets ou exécutables passés en argument. Un fichier objet est un fichier intermédiaire intervenant dans le processus de compilation. | La commande **strings** est utilisée pour trouver toutes les chaînes de caractères qui peuvent être imprimés dans un ou plusieurs fichiers objets ou exécutables passés en argument. Un fichier objet est un fichier intermédiaire intervenant dans le processus de compilation. | ||
+ | |||
+ | Sous Debian 11, la commande **strings** n'est pas installée par défaut : | ||
+ | |||
+ | < | ||
+ | root@debian11:/ | ||
+ | root@debian11:/ | ||
+ | ... | ||
+ | root@debian11:/ | ||
+ | / | ||
+ | </ | ||
Sous Linux et Unix, le format d'un fichier objet est le format **ELF**, (// | Sous Linux et Unix, le format d'un fichier objet est le format **ELF**, (// | ||
Ligne 2886: | Ligne 2917: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# strings / |
/ | / | ||
- | libuser.so.1 | + | owLg |
- | g_value_get_int64 | + | mfUa |
- | is_selinux_enabled | + | libpam.so.0 |
_ITM_deregisterTMCloneTable | _ITM_deregisterTMCloneTable | ||
- | g_free | ||
- | g_value_array_get_nth | ||
audit_open | audit_open | ||
__gmon_start__ | __gmon_start__ | ||
- | g_value_get_string | ||
- | g_type_check_value_holds | ||
- | g_value_get_long | ||
- | freecon | ||
- | audit_log_acct_message | ||
_ITM_registerTMCloneTable | _ITM_registerTMCloneTable | ||
- | lu_ent_set_string | + | pam_start |
- | lu_ent_get_first_value_strdup | + | pam_strerror |
- | lu_error_free | + | pam_chauthtok |
- | lu_user_lock | + | pam_end |
- | lu_strerror | + | libpam_misc.so.0 |
- | lu_ent_free | + | misc_conv |
- | lu_ent_new | + | libaudit.so.1 |
- | lu_user_modify | + | audit_log_user_avc_message |
+ | libselinux.so.1 | ||
+ | is_selinux_enabled | ||
+ | security_getenforce | ||
+ | matchpathcon | ||
+ | freecon | ||
+ | selinux_set_callback | ||
+ | setfscreatecon | ||
+ | selinux_check_access | ||
+ | getprevcon | ||
+ | libc.so.6 | ||
+ | setuid | ||
+ | chroot | ||
+ | getc | ||
+ | fflush | ||
+ | strcpy | ||
+ | fchmod | ||
--More-- | --More-- | ||
+ | [q] | ||
</ | </ | ||
Ligne 2916: | Ligne 2957: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# strings -t d / |
- | | + | |
- | 2809 libuser.so.1 | + | 725 owLg |
- | 2822 g_value_get_int64 | + | 835 mfUa |
- | 2840 is_selinux_enabled | + | 4097 libpam.so.0 |
- | 2859 _ITM_deregisterTMCloneTable | + | 4109 _ITM_deregisterTMCloneTable |
- | 2887 g_free | + | 4137 audit_open |
- | 2894 g_value_array_get_nth | + | 4148 __gmon_start__ |
- | 2916 audit_open | + | 4163 _ITM_registerTMCloneTable |
- | 2927 __gmon_start__ | + | 4189 pam_start |
- | 2942 g_value_get_string | + | 4199 pam_strerror |
- | 2961 g_type_check_value_holds | + | 4212 pam_chauthtok |
- | 2986 g_value_get_long | + | 4226 pam_end |
- | 3003 freecon | + | 4234 libpam_misc.so.0 |
- | 3011 audit_log_acct_message | + | 4251 misc_conv |
- | 3034 _ITM_registerTMCloneTable | + | 4261 libaudit.so.1 |
- | 3060 lu_ent_set_string | + | 4275 audit_log_user_avc_message |
- | 3078 lu_ent_get_first_value_strdup | + | 4302 libselinux.so.1 |
- | 3108 lu_error_free | + | 4318 is_selinux_enabled |
- | 3122 lu_user_lock | + | 4337 security_getenforce |
- | 3135 lu_strerror | + | 4357 matchpathcon |
- | 3147 lu_ent_free | + | 4370 freecon |
- | 3159 lu_ent_new | + | 4378 selinux_set_callback |
- | 3170 lu_user_modify | + | 4399 setfscreatecon |
+ | 4414 selinux_check_access | ||
+ | 4435 getprevcon | ||
+ | 4446 libc.so.6 | ||
+ | 4456 setuid | ||
+ | 4463 chroot | ||
+ | 4470 getc | ||
+ | 4475 fflush | ||
+ | 4482 strcpy | ||
+ | 4489 fchmod | ||
--More-- | --More-- | ||
+ | [q] | ||
</ | </ | ||
Ligne 2953: | Ligne 3004: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# strings -t d -n 15 / |
- | | + | |
- | 2822 g_value_get_int64 | + | 4109 _ITM_deregisterTMCloneTable |
- | 2840 is_selinux_enabled | + | 4163 _ITM_registerTMCloneTable |
- | 2859 _ITM_deregisterTMCloneTable | + | 4234 libpam_misc.so.0 |
- | 2894 g_value_array_get_nth | + | 4275 audit_log_user_avc_message |
- | 2942 g_value_get_string | + | 4302 libselinux.so.1 |
- | 2961 g_type_check_value_holds | + | 4318 is_selinux_enabled |
- | 2986 g_value_get_long | + | 4337 security_getenforce |
- | 3011 audit_log_acct_message | + | 4378 selinux_set_callback |
- | 3034 _ITM_registerTMCloneTable | + | 4414 selinux_check_access |
- | 3060 lu_ent_set_string | + | 4617 __stack_chk_fail |
- | 3078 lu_ent_get_first_value_strdup | + | 4807 __errno_location |
- | 3185 lu_prompt_console | + | 5221 __vasprintf_chk |
- | 3212 lu_user_lookup_name | + | 5282 __libc_start_main |
- | 3239 lu_ent_set_long | + | 5364 LIBPAM_MISC_1.0 |
- | 3281 lu_user_removepass | + | 40968 Usage: %s [options] [LOGIN] |
- | 3300 libgobject-2.0.so.0 | + | |
- | 3320 libglib-2.0.so.0 | + | |
- | 3379 poptHelpOptions | + | |
- | 3435 poptSetOtherOptionHelp | + | |
- | 3543 libpam_misc.so.0 | + | |
- | 3584 audit_log_user_avc_message | + | |
- | 3611 libselinux.so.1 | + | |
+ | 41512 -l, --lock | ||
+ | | ||
+ | | ||
+ | 41712 | ||
+ | | ||
+ | | ||
+ | | ||
+ | 41984 -u, --unlock | ||
+ | 42064 -w, --warndays WARN_DAYS | ||
--More-- | --More-- | ||
+ | [q] | ||
</ | </ | ||
Ligne 2983: | Ligne 3044: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# strings -f /bin/* | grep " |
/ | / | ||
- | / | + | / |
- | / | + | p=this; |
- | / | + | & |
- | / | + | ction u(c){var d=c.length, |
- | / | + | t32Array: |
- | /bin/btrace: # Copyright | + | h}++g; |
- | / | + | ; |
- | /bin/chcat: if len(c) > 0 and c[0] == " | + | his.p=d.resize); |
- | / | + | ray: |
- | /bin/gprof: @(#) Copyright (c) 1983 Regents of the University of California. | + | / |
- | /bin/lsusb.py: # Copyright (c) 2009 Kurt Garloff < | + | s.b, |
- | /bin/lsusb.py: # Copyright (c) 2013 Kurt Garloff < | + | ; |
- | / | + | ed block header: NLEN (first byte)" |
- | / | + | / |
- | / | + | e 17: |
- | / | + | =y(c, |
- | / | + | int8Array: |
- | / | + | / |
- | /bin/pod2usage: # Copyright (c) 2001-2016 by Marek Rouchal. | + | length)); |
- | /bin/qemu-img: Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers | + | ++a)e[a]=e[d+a]; |
- | /bin/qemu-img: Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers | + | / |
- | / | + | umber" |
- | / | + | Array(e), |
- | / | + | /bin/busybox: Original code (c) 2018 Gavin D. Howard |
- | / | + | /bin/corelist: Copyright |
- | / | + | /bin/cpan: Copyright (c) 2001-2015, |
- | / | + | /bin/cpan5.32-x86_64-linux-gnu: Copyright (c) 2001-2015, |
- | / | + | /bin/exo-desktop-item-edit: Copyright (c) %s |
- | /bin/screen: Copyright (c) 2010-2014 Juergen Weigert, Sadrul Habib Chowdhury | + | /bin/exo-open: Copyright (c) %s |
- | / | + | /bin/ispell: @(#) Copyright (c), 1983, by Pace Willisson |
- | / | + | /bin/ispell: @(#) International version |
- | /bin/screen: Copyright (c) 1987 Oliver Laumann | + | --More-- |
- | /bin/scsi-rescan: # (c) 1998--2010 Kurt Garloff < | + | [q] |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | /bin/strace-log-merge: # Copyright (c) 2012-2019 The strace developers. | + | |
- | / | + | |
- | /bin/tree: $Version: $ tree v1.7.0 (c) 1996 - 2014 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro $ | + | |
- | /bin/usb-devices: # Copyright (c) 2009 Greg Kroah-Hartman <greg@kroah.com> | + | |
- | / | + | |
- | / | + | |
- | /bin/vdo: # Copyright (c) 2020 Red Hat, Inc. | + | |
- | /bin/vdo-by-dev: # Copyright (c) 2020 Red Hat, Inc. | + | |
- | / | + | |
- | /bin/zip: Copyright (c) 1990-2008 Info-ZIP. All rights reserved. | + | |
- | /bin/zip: Copyright (c) 1990-2008 Info-ZIP - Type '%s " | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez que l' | **Important** : Notez que l' | ||
</ | </ | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 3064: | Ligne 3100: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# comm /etc/passwd / |
- | root: | + | root: |
- | bin:x:1:1:bin:/bin:/ | + | |
- | daemon:x:2:2:daemon:/sbin:/ | + | bin:x:2:2:bin:/bin:/usr/ |
- | adm:x:3:4:adm:/var/adm:/sbin/ | + | sys:x:3:3:sys:/dev:/usr/ |
- | lp: | + | sync:x:4:65534:sync:/bin:/ |
- | sync:x:5:0:sync:/sbin:/ | + | games:x:5:60: |
- | shutdown: | + | man:x:6:12:man:/var/cache/man:/usr/ |
- | halt: | + | lp:x:7:7:lp:/var/spool/lpd:/usr/ |
- | mail: | + | mail:x:8:8:mail:/var/mail:/usr/ |
- | operator: | + | news:x:9:9:news:/var/spool/news:/usr/ |
- | games:x:12:100: | + | uucp:x:10:10:uucp:/var/spool/uucp:/usr/ |
- | ftp:x:14:50:FTP User:/var/ftp:/sbin/ | + | comm: file 1 is not in sorted order |
- | nobody: | + | |
- | dbus:x:81:81:System message bus:/:/sbin/nologin | + | |
- | systemd-coredump: | + | |
- | systemd-resolve:x:193:193:systemd Resolver:/:/ | + | |
- | tss: | + | |
- | polkitd: | + | |
- | unbound: | + | |
- | libstoragemgmt: | + | |
- | cockpit-ws: | + | |
- | sssd:x:994:990:User for sssd:/:/ | + | |
- | setroubleshoot: | + | |
- | sshd: | + | |
- | chrony:x:992:988::/var/lib/chrony:/sbin/ | + | |
- | tcpdump: | + | |
- | trainee10:x: | + | |
comm: file 2 is not in sorted order | comm: file 2 is not in sorted order | ||
- | cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/ | + | proxy: |
- | rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/ | + | www-data:x:33:33:www-data:/var/www:/usr/ |
- | gluster:x:989:985:GlusterFS daemons:/run/gluster:/ | + | |
- | qemu:x:107:107:qemu user:/:/ | + | list:x:38:38:Mailing List Manager:/var/list:/usr/ |
- | rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/ | + | irc:x:39:39:ircd:/run/ircd:/usr/ |
- | rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/ | + | gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/ |
- | saslauth:x:988:76:Saslauthd user:/run/saslauthd:/ | + | |
- | radvd:x:75:75:radvd user:/:/ | + | _apt: |
- | dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/ | + | |
- | Linux est super! | + | |
- | trainee:x:1000:1000:trainee:/home/trainee:/bin/bash | + | |
- | comm: file 1 is not in sorted order | + | systemd-timesync:x: |
- | cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/ | + | |
- | rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/ | + | rtkit:x:106:113:RealtimeKit,,, |
- | gluster:x:989:985:GlusterFS daemons:/run/gluster:/ | + | |
- | qemu:x:107:107:qemu user:/:/ | + | avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/ |
- | rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/ | + | |
- | rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/ | + | pulse: |
- | saslauth:x:988:76:Saslauthd user:/run/saslauthd:/ | + | saned:x:111:119::/var/lib/saned:/usr/ |
- | radvd:x:75:75:radvd user:/:/ | + | |
- | dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/ | + | |
+ | trainee10: | ||
+ | systemd-coredump: | ||
+ | sshd:x:114:65534::/run/sshd:/usr/ | ||
+ | Linux is great! | ||
+ | trainee:x:1000:1000:trainee,,,:/home/trainee:/bin/bash | ||
+ | systemd-coredump: | ||
+ | sshd: | ||
+ | comm: input is not in sorted order | ||
</ | </ | ||
Ligne 3119: | Ligne 3148: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# comm -12 /etc/passwd / |
root: | root: | ||
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
- | daemon:x:2:2:daemon:/sbin:/ | + | bin:x:2:2:bin:/bin:/usr/ |
- | adm:x:3:4:adm:/var/adm:/sbin/ | + | sys:x:3:3:sys:/dev:/usr/ |
- | lp: | + | sync:x:4:65534:sync:/bin:/ |
- | sync:x:5:0:sync:/sbin:/bin/sync | + | games:x:5:60: |
- | shutdown: | + | man:x:6:12:man:/var/cache/man:/usr/ |
- | halt: | + | mail:x:8:8:mail:/var/mail:/usr/ |
- | mail: | + | news:x:9:9:news:/var/spool/news:/usr/ |
- | operator: | + | uucp:x:10:10:uucp:/var/spool/uucp:/usr/ |
- | games:x:12:100: | + | comm: file 1 is not in sorted order |
- | ftp:x:14:50:FTP User:/var/ftp:/sbin/ | + | |
- | nobody: | + | |
- | dbus:x:81:81:System message bus:/:/sbin/ | + | |
- | systemd-coredump: | + | |
- | systemd-resolve:x:193:193:systemd Resolver:/:/ | + | |
- | tss: | + | |
- | polkitd: | + | |
- | unbound: | + | |
- | libstoragemgmt: | + | |
- | cockpit-ws: | + | |
- | sssd:x:994:990:User for sssd:/:/ | + | |
- | setroubleshoot: | + | |
- | sshd: | + | |
- | chrony:x: | + | |
comm: file 2 is not in sorted order | comm: file 2 is not in sorted order | ||
- | comm: file 1 is not in sorted order | + | proxy: |
+ | www-data: | ||
+ | backup: | ||
+ | list: | ||
+ | irc: | ||
+ | gnats: | ||
+ | nobody: | ||
+ | _apt: | ||
+ | systemd-network: | ||
+ | systemd-resolve: | ||
+ | messagebus: | ||
+ | systemd-timesync: | ||
+ | usbmux: | ||
+ | rtkit: | ||
+ | dnsmasq: | ||
+ | avahi: | ||
+ | speech-dispatcher: | ||
+ | pulse: | ||
+ | saned: | ||
+ | colord: | ||
+ | lightdm: | ||
+ | comm: input is not in sorted order | ||
</ | </ | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 3160: | Ligne 3194: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# head /etc/passwd |
root: | root: | ||
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
- | daemon:x:2:2:daemon:/sbin:/ | + | bin:x:2:2:bin:/bin:/usr/ |
- | adm:x:3:4:adm:/var/adm:/ | + | sys:x:3:3:sys:/dev:/usr/ |
- | lp:x:4:7:lp:/var/ | + | sync:x:4:65534:sync:/bin:/bin/sync |
- | sync:x:5:0:sync:/sbin:/bin/sync | + | games:x:5:60:games:/usr/games:/usr/sbin/ |
- | shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown | + | man:x:6:12:man:/var/ |
- | halt:x:7:0:halt:/sbin:/sbin/halt | + | lp:x:7:7:lp:/var/ |
- | mail:x:8:12:mail:/var/spool/ | + | mail:x:8:8: |
- | operator:x:11:0:operator:/root:/ | + | news:x:9:9:news:/var/ |
</ | </ | ||
Ligne 3176: | Ligne 3210: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# head -n 15 /etc/passwd |
root: | root: | ||
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
- | daemon:x:2:2:daemon:/sbin:/ | + | bin:x:2:2:bin:/bin:/usr/ |
- | adm:x:3:4:adm:/var/adm:/ | + | sys:x:3:3:sys:/dev:/usr/ |
- | lp:x:4:7:lp:/var/ | + | sync:x:4:65534:sync:/bin:/bin/sync |
- | sync:x:5:0:sync:/sbin:/bin/sync | + | games:x:5:60:games:/usr/games:/usr/sbin/ |
- | shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown | + | man:x:6:12:man:/var/ |
- | halt:x:7:0:halt:/sbin:/sbin/halt | + | lp:x:7:7:lp:/var/ |
- | mail:x:8:12:mail:/var/spool/ | + | mail:x:8:8: |
- | operator:x:11:0:operator:/root:/ | + | news:x:9:9:news:/var/ |
- | games:x:12:100:games:/usr/games:/ | + | uucp:x:10:10:uucp:/var/spool/uucp:/usr/ |
- | ftp:x:14:50:FTP User:/var/ftp:/ | + | proxy:x:13:13:proxy:/bin:/usr/ |
- | nobody:x:65534:65534:Kernel Overflow User:/:/ | + | www-data:x:33:33:www-data:/var/www:/usr/ |
- | dbus:x:81:81:System message bus:/:/ | + | backup:x:34:34:backup:/var/backups:/usr/ |
- | systemd-coredump:x:999:997:systemd Core Dumper:/:/ | + | list:x:38:38:Mailing List Manager:/var/list:/usr/ |
</ | </ | ||
Ligne 3197: | Ligne 3231: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# head -c 150 /etc/passwd |
root: | root: | ||
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
- | daemon:x:2:2:daemon:/sbin:/ | + | bin:x:2:2:bin:/bin:/usr/ |
- | adm:x:3:4:adm:/var/adm:/sbin/nologin | + | sys:x:3:3:sys:/dev:/usr/sbin/noloroot@debian11:/tmp# |
- | lp:x: | + | |
</ | </ | ||
Ligne 3208: | Ligne 3241: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# head -c -150 /etc/passwd |
root: | root: | ||
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
- | daemon:x:2:2:daemon:/sbin:/ | + | bin:x:2:2:bin:/bin:/usr/ |
- | adm:x:3:4:adm:/var/adm:/ | + | sys:x:3:3:sys:/dev:/usr/ |
- | lp:x:4:7:lp:/var/ | + | sync:x:4:65534:sync:/bin:/bin/sync |
- | sync:x:5:0:sync:/sbin:/bin/sync | + | games:x:5:60:games:/usr/games:/usr/sbin/ |
- | shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown | + | man:x:6:12:man:/var/ |
- | halt:x:7:0:halt:/sbin:/sbin/halt | + | lp:x:7:7:lp:/var/ |
- | mail:x:8:12:mail:/var/spool/ | + | mail:x:8:8: |
- | operator:x:11:0:operator:/root:/sbin/nologin | + | news:x:9:9:news:/var/spool/news:/ |
- | games: | + | uucp:x:10:10:uucp:/var/spool/uucp:/usr/ |
- | ftp:x:14:50:FTP User:/var/ftp:/ | + | proxy:x:13:13:proxy:/bin:/usr/ |
- | nobody:x:65534:65534:Kernel Overflow User:/:/ | + | www-data:x:33:33:www-data:/var/www:/usr/ |
- | dbus:x:81:81:System message bus:/:/ | + | backup:x:34:34:backup:/var/backups:/usr/ |
- | systemd-coredump:x:999:997:systemd Core Dumper:/:/ | + | list:x:38:38:Mailing List Manager:/var/list:/usr/ |
- | systemd-resolve:x:193:193:systemd Resolver:/:/ | + | irc:x:39:39:ircd:/run/ircd:/usr/ |
- | tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/ | + | gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/ |
- | polkitd:x:998:996:User for polkitd:/:/ | + | nobody:x:65534:65534:nobody:/nonexistent:/usr/ |
- | unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/ | + | _apt:x:100:65534::/nonexistent: |
- | libstoragemgmt:x:996:993:daemon account for libstoragemgmt:/var/run/lsm:/ | + | systemd-network:x:101:102:systemd Network Management,,, |
- | cockpit-ws:x:995:991:User for cockpit-ws:/nonexisting:/ | + | systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/ |
- | sssd:x:994:990:User for sssd:/:/ | + | messagebus:x:103:109::/nonexistent:/usr/ |
- | setroubleshoot:x:993:989::/var/ | + | systemd-timesync:x:104:110:systemd Time Synchronization,,, |
- | sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/ | + | usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/ |
- | chrony:x:992:988::/var/lib/chrony:/ | + | rtkit:x:106:113:RealtimeKit,,, |
- | tcpdump:x:72:72::/:/ | + | dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/ |
- | trainee:x:1000:1000:trainee:/home/trainee:/bin/bash | + | avahi:x:108:114:Avahi mDNS daemon,,,:/run/ |
- | cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/ | + | speech-dispatcher:x:109:29:Speech Dispatcher,,, |
- | rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin | + | pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/ |
- | gluster:x:989:985:GlusterFS daemons:/run/gluster:/ | + | saned:x:111:119::/var/ |
- | qemu:x:107:107:qemu user:/:/ | + | colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/ |
- | rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/ | + | lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false |
- | rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin | + | trainee:x:1000:100root@debian11:/tmp# |
- | saslauth:x:988:76: | + | |
</ | </ | ||
Ligne 3248: | Ligne 3280: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# head -c 1b /etc/passwd |
root: | root: | ||
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
- | daemon:x:2:2:daemon:/sbin:/ | + | bin:x:2:2:bin:/bin:/usr/ |
- | adm:x:3:4:adm:/var/adm:/ | + | sys:x:3:3:sys:/dev:/usr/ |
- | lp:x:4:7:lp:/var/ | + | sync:x:4:65534:sync:/bin:/bin/sync |
- | sync:x:5:0:sync:/sbin:/bin/sync | + | games:x:5:60:games:/usr/games:/usr/sbin/ |
- | shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown | + | man:x:6:12:man:/var/ |
- | halt:x:7:0:halt:/sbin:/sbin/halt | + | lp:x:7:7:lp:/var/ |
- | mail:x:8:12:mail:/var/spool/ | + | mail:x:8:8: |
- | operator:x:11:0:operator:/root:/ | + | news:x:9:9:news:/var/ |
- | games:x:12:100:games:/usr/games:/ | + | uucp:x:10:10:uucp:/var/spool/uucp:/usr/ |
- | ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin | + | proxy:x:13:13:proxy:/bin:/usr/sbin/nroot@debian11:/tmp# |
- | nobody:x: | + | |
- | [root@centos8 | + | root@debian11:/tmp# head -c 512 /etc/passwd |
root: | root: | ||
- | bin:x:1:1:bin:/bin:/ | + | daemon:x:1:1:daemon:/usr/sbin:/usr/ |
- | daemon:x:2:2:daemon:/sbin:/ | + | bin:x:2:2:bin:/bin:/usr/ |
- | adm:x:3:4:adm:/var/adm:/ | + | sys:x:3:3:sys:/dev:/usr/ |
- | lp:x:4:7:lp:/var/ | + | sync:x:4:65534:sync:/bin:/bin/sync |
- | sync:x:5:0:sync:/sbin:/bin/sync | + | games:x:5:60:games:/usr/games:/usr/sbin/ |
- | shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown | + | man:x:6:12:man:/var/ |
- | halt:x:7:0:halt:/sbin:/sbin/halt | + | lp:x:7:7:lp:/var/ |
- | mail:x:8:12:mail:/var/spool/ | + | mail:x:8:8: |
- | operator:x:11:0:operator:/root:/ | + | news:x:9:9:news:/var/ |
- | games:x:12:100:games:/usr/games:/ | + | uucp:x:10:10:uucp:/var/spool/uucp:/usr/ |
- | ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin | + | proxy:x:13:13:proxy:/bin:/usr/sbin/nroot@debian11:/tmp# |
- | nobody:x: | + | |
+ | root@debian11:/tmp# | ||
</ | </ | ||
Ligne 3290: | Ligne 3322: | ||
| G | 1024*1024*1024 | | | G | 1024*1024*1024 | | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 3301: | Ligne 3331: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# tail / |
- | trainee:x:1000:1000:trainee:/home/trainee:/bin/bash | + | dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/ |
- | cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/ | + | avahi:x:108:114:Avahi mDNS daemon,,,:/run/ |
- | rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin | + | speech-dispatcher:x:109:29:Speech Dispatcher,,, |
- | gluster:x:989:985:GlusterFS daemons:/run/gluster:/ | + | pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/ |
- | qemu:x:107:107:qemu user:/:/ | + | saned:x:111:119::/var/ |
- | rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/ | + | colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/ |
- | rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin | + | lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false |
- | saslauth:x:988:76:Saslauthd user:/run/saslauthd:/sbin/nologin | + | trainee:x:1000:1000:trainee,,,:/home/trainee:/bin/bash |
- | radvd:x:75:75:radvd user:/:/ | + | systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/ |
- | dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/ | + | sshd:x:114:65534::/run/sshd:/usr/ |
</ | </ | ||
Ligne 3317: | Ligne 3347: | ||
< | < | ||
- | root@centos8 | + | root@debian11:/tmp# tail -n 15 / |
- | sssd:x:994:990:User for sssd:/:/ | + | systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/ |
- | setroubleshoot:x:993:989::/var/lib/ | + | messagebus:x:103:109::/nonexistent: |
- | sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/ | + | systemd-timesync:x:104:110:systemd Time Synchronization,,, |
- | chrony:x:992:988::/var/lib/chrony:/ | + | usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/ |
- | tcpdump:x:72:72::/:/ | + | rtkit:x:106:113:RealtimeKit,,, |
- | trainee:x:1000:1000:trainee:/home/trainee:/bin/bash | + | dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/ |
- | cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/ | + | avahi:x:108:114:Avahi mDNS daemon,,,:/run/ |
- | rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin | + | speech-dispatcher:x:109:29:Speech Dispatcher,,, |
- | gluster:x:989:985:GlusterFS daemons:/run/gluster:/ | + | pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/ |
- | qemu:x:107:107:qemu user:/:/ | + | saned:x:111:119::/var/ |
- | rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/ | + | colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/ |
- | rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin | + | lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false |
- | saslauth:x:988:76:Saslauthd user:/run/saslauthd:/sbin/nologin | + | trainee:x:1000:1000:trainee,,,:/home/trainee:/bin/bash |
- | radvd:x:75:75:radvd user:/:/ | + | systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/ |
- | dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/ | + | sshd:x:114:65534::/run/sshd:/usr/ |
</ | </ | ||
Ligne 3338: | Ligne 3368: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# tail -c 150 / |
- | er:/run/saslauthd:/sbin/nologin | + | 0: |
- | radvd:x:75:75:radvd user:/:/ | + | systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/ |
- | dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/ | + | sshd:x:114:65534::/run/sshd:/usr/ |
</ | </ | ||
Ligne 3347: | Ligne 3377: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# tail -c +150 / |
- | 7: | + | ogin |
- | sync:x:5:0:sync:/sbin:/ | + | sync:x:4:65534:sync:/bin:/ |
- | shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown | + | games:x:5:60:games:/usr/games:/usr/sbin/nologin |
- | halt:x:7:0:halt:/sbin:/sbin/halt | + | man:x:6:12:man:/var/ |
- | mail:x:8:12:mail:/ | + | lp:x:7:7:lp:/ |
- | operator:x:11:0:operator:/root:/ | + | mail:x:8:8:mail:/var/mail:/usr/ |
- | games:x:12:100:games:/usr/games:/ | + | news:x:9:9:news:/var/spool/news:/usr/ |
- | ftp:x:14:50:FTP User:/var/ftp:/ | + | uucp:x:10:10:uucp:/var/spool/uucp:/usr/ |
- | nobody:x:65534:65534:Kernel Overflow User:/:/ | + | proxy:x:13:13:proxy:/bin:/usr/ |
- | dbus:x:81:81:System message bus:/:/ | + | www-data:x:33:33:www-data:/var/www:/usr/ |
- | systemd-coredump:x:999:997:systemd Core Dumper:/:/ | + | backup:x:34:34:backup:/var/backups:/usr/ |
- | systemd-resolve:x:193:193:systemd Resolver:/:/ | + | list:x:38:38:Mailing List Manager:/var/list:/usr/ |
- | tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/ | + | irc:x:39:39:ircd:/run/ircd:/usr/ |
- | polkitd:x:998:996:User for polkitd:/:/ | + | gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/ |
- | unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/ | + | nobody:x:65534:65534:nobody:/nonexistent:/usr/ |
- | libstoragemgmt:x:996:993:daemon account for libstoragemgmt:/var/run/lsm:/ | + | _apt:x:100:65534::/nonexistent: |
- | cockpit-ws:x:995:991:User for cockpit-ws:/nonexisting:/ | + | systemd-network:x:101:102:systemd Network Management,,, |
- | sssd:x:994:990:User for sssd:/:/ | + | systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/ |
- | setroubleshoot:x:993:989::/var/ | + | messagebus:x:103:109::/nonexistent:/usr/ |
- | sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/ | + | systemd-timesync:x:104:110:systemd Time Synchronization,,, |
- | chrony:x:992:988::/var/lib/chrony:/ | + | usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/ |
- | tcpdump:x:72:72::/:/ | + | rtkit:x:106:113:RealtimeKit,,, |
- | trainee:x:1000:1000:trainee:/home/trainee:/bin/bash | + | dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/ |
- | cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/ | + | avahi:x:108:114:Avahi mDNS daemon,,,:/run/ |
- | rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin | + | speech-dispatcher:x:109:29:Speech Dispatcher,,, |
- | gluster:x:989:985:GlusterFS daemons:/run/gluster:/ | + | pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/ |
- | qemu:x:107:107:qemu user:/:/ | + | saned:x:111:119::/var/ |
- | rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/ | + | colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/ |
- | rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin | + | lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false |
- | saslauth:x:988:76:Saslauthd user:/run/saslauthd:/sbin/nologin | + | trainee:x:1000:1000:trainee,,,:/home/trainee:/bin/bash |
- | radvd:x:75:75:radvd user:/:/ | + | systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/ |
- | dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/ | + | sshd:x:114:65534::/run/sshd:/usr/ |
</ | </ | ||
Ligne 3385: | Ligne 3415: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# tail -c 1b / |
- | nstances:/ | + | ispatcher:x:109:29:Speech Dispatcher,,, |
- | rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin | + | pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/ |
- | gluster:x:989:985:GlusterFS daemons:/run/gluster:/ | + | saned:x:111:119::/var/ |
- | qemu:x:107:107:qemu user:/:/ | + | colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/ |
- | rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/ | + | lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false |
- | rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin | + | trainee:x:1000:1000:trainee,,,:/home/trainee:/bin/bash |
- | saslauth:x:988:76:Saslauthd user:/run/saslauthd:/sbin/nologin | + | systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/ |
- | radvd:x:75:75:radvd user:/:/ | + | sshd:x:114:65534::/run/sshd:/usr/ |
- | dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/ | + | |
- | [root@centos8 | + | root@debian11:/tmp# tail -c 512 / |
- | nstances:/ | + | ispatcher:x:109:29:Speech Dispatcher,,, |
- | rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin | + | pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/ |
- | gluster:x:989:985:GlusterFS daemons:/run/gluster:/ | + | saned:x:111:119::/var/ |
- | qemu:x:107:107:qemu user:/:/ | + | colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/ |
- | rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/ | + | lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false |
- | rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin | + | trainee:x:1000:1000:trainee,,,:/home/trainee:/bin/bash |
- | saslauth:x:988:76:Saslauthd user:/run/saslauthd:/sbin/nologin | + | systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/ |
- | radvd:x:75:75:radvd user:/:/ | + | sshd:x:114:65534::/run/sshd:/usr/ |
- | dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/ | + | |
</ | </ | ||
Ligne 3422: | Ligne 3450: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# tail -f / |
- | Apr 20 06:27:53 centos8 systemd[1]: Started dnf makecache. | + | Jun 1 00:00:20 debian11 kernel: [1848186.284195] audit: type=1400 audit(1654034420.410:44): apparmor=" |
- | Apr 20 07:28:29 centos8 systemd[1]: Starting dnf makecache... | + | Jun 2 09:31:44 debian11 lightdm[21895]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files |
- | Apr 20 07:28:29 centos8 dnf[12423]: Metadata cache refreshed recently. | + | Jun 2 09:31:47 debian11 org.freedesktop.thumbnails.Thumbnailer1[22054]: Registered thumbnailer atril-thumbnailer -s %s %u %o |
- | Apr 20 07:28:29 centos8 systemd[1]: dnf-makecache.service: | + | Jun 2 09:31:47 debian11 org.freedesktop.thumbnails.Thumbnailer1[22054]: Registered thumbnailer / |
- | Apr 20 07:28:29 centos8 systemd[1]: Started dnf makecache. | + | Jun 2 09:31:47 debian11 org.freedesktop.thumbnails.Thumbnailer1[22054]: Registered thumbnailer |
- | Apr 20 07:50:35 centos8 systemd[1]: Started | + | Jun 2 09:31:54 debian11 pipewire-media-session[542]: error id:0 seq:158 res:-32 (Broken pipe): connection error |
- | Apr 20 07:50:35 centos8 systemd[1]: Starting man-db-cache-update.service... | + | Jun 2 09:42:09 debian11 lightdm[22205]: |
- | Apr 20 07:50:36 centos8 systemd[1]: man-db-cache-update.service: Succeeded. | + | Jun 2 11:09:53 debian11 lightdm[22669]: Error getting user list from org.freedesktop.Accounts: GDBus.Error: |
- | Apr 20 07:50:36 centos8 systemd[1]: Started man-db-cache-update.service. | + | Jun 2 11:10:03 debian11 pipewire-media-session[22229]: error id:0 seq:158 res:-32 (Broken pipe): connection error |
- | Apr 20 07:50:36 centos8 systemd[1]: run-r85917a32bc86476980c271609ba457fb.service: Succeeded. | + | Jun 2 11:20:08 debian11 lightdm[22970]: Error getting user list from org.freedesktop.Accounts: GDBus.Error: |
^C | ^C | ||
</ | </ | ||
- | ==Options de la commande== | + | <WRAP center round todo> |
- | + | ||
- | <WRAP center round todo 60%> | + | |
**A faire** : Utilisez l' | **A faire** : Utilisez l' | ||
</ | </ | ||
Ligne 3445: | Ligne 3471: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/ |
+ | ... | ||
+ | root@debian11:/ | ||
ens18: flags=4163< | ens18: flags=4163< | ||
- | inet 10.0.2.45 | + | inet 10.0.2.40 |
- | inet6 fe80::86b6:8d39:cab2:d84d | + | inet6 fe80::f435:d1ff:fe39:972 |
- | ether 4e:b1:31:bd:5d:b2 | + | ether f6:35:d1:39:09:72 |
- | RX packets | + | RX packets |
RX errors 0 dropped 0 overruns 0 frame 0 | RX errors 0 dropped 0 overruns 0 frame 0 | ||
- | TX packets | + | TX packets |
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
- | [root@centos8 | + | root@debian11:/tmp# ifconfig ens18 | grep " |
- | inet 10.0.2.45 | + | inet 10.0.2.40 |
- | inet6 fe80::86b6:8d39:cab2:d84d | + | inet6 fe80::f435:d1ff:fe39:972 |
- | [root@centos8 | + | root@debian11:/tmp# ifconfig ens18 | grep " |
- | inet 10.0.2.45 | + | inet 10.0.2.40 |
- | [root@centos8 | + | root@debian11:/tmp# ifconfig ens18 | grep " |
- | : | + | : |
- | [root@centos8 | + | root@debian11:/tmp# ifconfig ens18 | grep " |
- | 10.0.2.45 | + | 10.0.2.40 |
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round important> |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
Ligne 3476: | Ligne 3504: | ||
< | < | ||
- | [root@centos8 | + | root@debian11:/tmp# ip addr show ens18 |
- | 2: ens18: < | + | 2: ens18: < |
- | link/ | + | link/ |
- | inet 10.0.2.45/24 brd 10.0.2.255 scope global noprefixroute ens18 | + | altname enp0s18 |
+ | inet 10.0.2.40/24 brd 10.0.2.255 scope global noprefixroute ens18 | ||
| | ||
- | inet6 fe80::86b6:8d39:cab2:d84d/64 scope link noprefixroute | + | inet6 fe80::f435:d1ff:fe39:972/64 scope link noprefixroute |
| | ||
- | [root@centos8 | + | root@debian11:/tmp# ip addr show ens18 | grep " |
- | inet 10.0.2.45/24 brd 10.0.2.255 scope global noprefixroute ens18 | + | inet 10.0.2.40/24 brd 10.0.2.255 scope global noprefixroute ens18 |
- | inet6 fe80::86b6:8d39:cab2:d84d/64 scope link noprefixroute | + | inet6 fe80::f435:d1ff:fe39:972/64 scope link noprefixroute |
- | [root@centos8 | + | root@debian11:/tmp# ip addr show ens18 | grep " |
- | inet 10.0.2.45/24 brd 10.0.2.255 scope global noprefixroute ens18 | + | inet 10.0.2.40/24 brd 10.0.2.255 scope global noprefixroute ens18 |
- | [root@centos8 | + | root@debian11:/tmp# ip addr show ens18 | grep " |
- | 10.0.2.45/24 | + | 10.0.2.40/24 |
- | [root@centos8 | + | root@debian11:/tmp# ip addr show ens18 | grep " |
- | 10.0.2.45 | + | 10.0.2.40 |
</ | </ | ||
----- | ----- | ||
- | Copyright © 2022 Hugh Norris. | + | Copyright © 2024 Hugh Norris. |