Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
elearning:workbooks:debian:10:utilisateur:l104 [2022/05/17 07:59] – created adminelearning:workbooks:debian:10:utilisateur:l104 [2024/03/11 09:33] (Version actuelle) admin
Ligne 1: Ligne 1:
 ~~PDF:LANDSCAPE~~ ~~PDF:LANDSCAPE~~
  
-Version : **2022.01**+Version : **2024.01**
  
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
  
-======LCF404 - Commandes de Base et de Manipulation de Fichiers Texte======+======LDF404 - Commandes de Base et de Manipulation de Fichiers Texte======
  
 =====Contenu du Module===== =====Contenu du Module=====
  
-  * **LCF404 - Commandes de Base et de Manipulation de Fichiers Texte**+  * **LDF404 - Commandes de Base et de Manipulation de Fichiers Texte**
     * 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 <key>Entrée</key>. **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 <key>Entrée</key>.
 </WRAP> </WRAP>
Ligne 107: Ligne 107:
  
 <code> <code>
-[trainee@centos8 ~]$ stty -a +trainee@debian11:~$ stty -a 
-speed 38400 baud; rows 24; columns 80; line = 0; +speed 38400 baud; rows 33; columns 144; line = 0; 
-intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; +intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; 
-eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; +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 -iutf8
--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+
 </code> </code>
  
 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'option **--help** de la commande **stty** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **stty** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 133: Ligne 128:
  
 <code> <code>
-[trainee@centos8 ~]$ date +trainee@debian11:~$ date 
-Tue 20 Apr 02:27:55 EDT 2021+Thu 02 Jun 2022 09:34:12 AM CEST
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **date** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **date** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 148: Ligne 141:
  
 <code> <code>
-[trainee@centos8 ~]$ who +trainee@debian11:~$ who 
-trainee  pts/       2021-04-20 02:21 (10.0.2.2)+trainee  tty7         2022-06-02 09:31 (:0) 
 +trainee  pts/       2022-06-02 09:32 (10.0.2.1)
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **who** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **who** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 163: Ligne 155:
  
 <code> <code>
-[trainee@centos8 ~]$ df+trainee@debian11:~$ df
 Filesystem     1K-blocks    Used Available Use% Mounted on Filesystem     1K-blocks    Used Available Use% Mounted on
-devtmpfs         1897604       0   1897604   0% /dev +udev             1989872       0   1989872   0% /dev 
-tmpfs            1913700         1913700   0% /dev/shm +tmpfs             402560     872    401688   1/run 
-tmpfs            1913700    8736   1904964   1% /run +/dev/sda1       31861548 3490764  26726752  12% / 
-tmpfs            1913700       0   1913700   0% /sys/fs/cgroup +tmpfs            2012796       0   2012796   0% /dev/shm 
-/dev/sda3       15349760 2419808  12929952  16% / +tmpfs               5120       0      5120   0% /run/lock 
-/dev/sda1         289285  198275     71554  74% /boot +tmpfs             402556      48    402508   1% /run/user/1000
-tmpfs             382740          382740   0% /run/user/1000+
 </code> </code>
  
Ligne 177: Ligne 168:
  
 <code> <code>
-[trainee@centos8 ~]$ df -h+trainee@debian11:~$ df -h
 Filesystem      Size  Used Avail Use% Mounted on Filesystem      Size  Used Avail Use% Mounted on
-devtmpfs        1.9G      1.9G   0% /dev +udev            1.9G      1.9G   0% /dev 
-tmpfs           1.9G      1.9G   0% /dev/shm +tmpfs           394M  872K  393M   1/run 
-tmpfs           1.9G  8.6M  1.9G   1% /run +/dev/sda1        31G  3.4G   26G  12% / 
-tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup +tmpfs           2.0G     0  2.0G   0% /dev/shm 
-/dev/sda3        15G  2.4G   13G  16% / +tmpfs           5.0M      5.0M   0% /run/lock 
-/dev/sda1       283M  194M   70M  74% /boot +tmpfs           394M   48K  394M   1% /run/user/1000
-tmpfs           374M      374M   0% /run/user/1000+
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **df** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **df** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 199: Ligne 187:
  
 <code> <code>
-[trainee@centos8 ~]$ free +trainee@debian11:~$ free 
-              total        used        free      shared  buff/cache   available +               total        used        free      shared  buff/cache   available 
-Mem:        3827400      290372     2594252        8736      942776     3281880 +Mem:         4025596      399064     2991172        4836      635360     3396764 
-Swap:       2047996           0     2047996+Swap:         998396           0      998396
 </code> </code>
  
Ligne 208: Ligne 196:
  
 <code> <code>
-[trainee@centos8 ~]$ free -h +trainee@debian11:~$ free -h 
-              total        used        free      shared  buff/cache   available +               total        used        free      shared  buff/cache   available 
-Mem:          3.6Gi       283Mi       2.5Gi       8.0Mi       920Mi       3.1Gi +Mem:           3.8Gi       389Mi       2.9Gi       4.0Mi       620Mi       3.2Gi 
-Swap:         2.0Gi          0B       2.0Gi+Swap:          974Mi          0B       974Mi
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **free** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **free** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 225: Ligne 211:
  
 <code> <code>
-[trainee@centos8 ~]$ whoami+trainee@debian11:~$ whoami
 trainee trainee
 </code> </code>
Ligne 232: Ligne 218:
  
 <code> <code>
-[trainee@centos8 ~]$ su -+trainee@debian11:~$ su -
 Password: fenestros Password: fenestros
 </code> </code>
  
-<WRAP center round important 60%>+<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.
 </WRAP> </WRAP>
Ligne 243: Ligne 229:
  
 <code> <code>
-[root@centos8 ~]# whoami+root@debian11:~# whoami
 root root
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez maintenant que vous êtes root. **Important** : Notez maintenant que vous êtes root.
 </WRAP> </WRAP>
Ligne 254: Ligne 240:
  
 <code> <code>
-[root@centos8 ~]# exit+root@debian11:~# exit
 logout logout
-[trainee@centos8 ~]+trainee@debian11:~$  
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **whoami** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **whoami** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 270: Ligne 254:
  
 <code> <code>
-[trainee@centos8 ~]$ pwd+trainee@debian11:~$ pwd
 /home/trainee /home/trainee
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez la commande **help** avec l'option **pwd** pour visualiser les options de la commande. **A faire** : Utilisez la commande **help** avec l'option **pwd** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 285: Ligne 267:
  
 <code> <code>
-[trainee@centos8 ~]$ cd /tmp +trainee@debian11:~$ cd /tmp 
-[trainee@centos8 tmp]$ pwd+trainee@debian11:/tmp$ pwd
 /tmp /tmp
-[trainee@centos8 tmp]+trainee@debian11:/tmp$ 
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez la commande **help** avec l'option **cd** pour visualiser les options de la commande. **A faire** : Utilisez la commande **help** avec l'option **cd** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 302: Ligne 282:
  
 <code> <code>
-[trainee@centos8 tmp]$ ls +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
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **ls** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **ls** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 317: Ligne 301:
  
 <code> <code>
-[trainee@centos8 tmp]$ su -+trainee@debian11:/tmp$ su -
 Password: fenestros Password: fenestros
-[root@centos8 ~]# lsof | more +root@debian11:~# lsof | more 
-COMMAND     PID   TID TASKCMD             USER   FD      TYPE             DEVICE +COMMAND     PID   TID TASKCMD               USER   FD      TYPE             DEVICE SIZE/OFF       NODE NAME 
- SIZE/OFF       NODE NAME +systemd                                   root  cwd       DIR                8,1     4096          2 
-systemd                                 root  cwd       DIR                8,+systemd                                   root  rtd       DIR                8,1     4096          2 
-      224        128 +systemd                                   root  txt       REG                8,1  1739200     135225 /usr/lib/systemd/systemd 
-systemd                                 root  rtd       DIR                8,+systemd                                   root  mem       REG                8,1   149576     131801 /usr/lib/x86_64-linux-gnu/libgpg-error.so 
-      224        128 +.0.29.0 
-systemd                                 root  txt       REG                8,3 +systemd       1                             root  mem       REG                8,1  3076992     130845 /usr/lib/x86_64-linux-gnu/libcrypto.so.1. 
-  1609248    8811152 /usr/lib/systemd/systemd +
-systemd                                 root  mem       REG                8,3 +systemd       1                             root  mem       REG                8,1    26984     131688 /usr/lib/x86_64-linux-gnu/libcap-ng.so.0. 
-  2191808     126296 /usr/lib64/libm-2.28.so +0.0 
-systemd                                 root  mem       REG                8,3 +systemd                                   root  mem       REG                8,1   617128     133011 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 
-   628744     126019 /usr/lib64/libudev.so.1.6.11 +.10.1 
-systemd                                 root  mem       REG                8,+systemd                                   root  mem       REG                8,1   149520     131529 /usr/lib/x86_64-linux-gnu/libpthread-2.31 
-   969832     151279 /usr/lib64/libsepol.so.1 +.so 
-systemd                                 root  mem       REG                8,3 +systemd                                   root  mem       REG                8,1    18688     131516 /usr/lib/x86_64-linux-gnu/libdl-2.31.so 
-  1805368     179753 /usr/lib64/libunistring.so.2.1.0 +systemd                                   root  mem       REG                8,1   158400     132895 /usr/lib/x86_64-linux-gnu/liblzma.so.5.2. 
-systemd                                 root  mem       REG                8,3 +5 
-   303944     131440 /usr/lib64/libpcap.so.1.9.1 +systemd                                   root  mem       REG                8,  890800     134187 /usr/lib/x86_64-linux-gnu/libzstd.so.1.4. 
-systemd                                 root  mem       REG                8,3 +8 
-   145984     163438 /usr/lib64/libgpg-error.so.0.24.2 +systemd                                   root  mem       REG                8,1   137568     131838 /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.
-systemd                                 root  mem       REG                8,+systemd                                   root  mem       REG                8,1    35280     134981 /usr/lib/x86_64-linux-gnu/libip4tc.so.2.
-    71528     194381 /usr/lib64/libjson-c.so.4.0.0 +.0 
-systemd                                 root  mem       REG                8,3+systemd                                   root  mem       REG                8,1  1176248     131813 /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 
 +.2.8 
 +systemd                                   root  mem       REG                8,1   202680     130829 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1 
 +.0 
 +systemd                                   root  mem       REG                8,1    38864     134959 /usr/lib/x86_64-linux-gnu/libcap.so.2.44 
 +systemd                                   root  mem       REG                8,1   326624     132627 /usr/lib/x86_64-linux-gnu/libblkid.so.1.
 +.0 
 +systemd                                   root  mem       REG                8,   38936     131226 /usr/lib/x86_64-linux-gnu/libacl.so.1.1.
 +253 
 +systemd                                   root  mem       REG                8,1  1839792     130842 /usr/lib/x86_64-linux-gnu/libc-2.31.so
 --More-- --More--
 +[q]
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **lsof** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **lsof** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 357: Ligne 349:
  
 <code> <code>
-[root@centos8 ~]# exit+root@debian11:~# exit
 logout logout
-[trainee@centos8 tmp]$ touch test +trainee@debian11:/tmp$ touch test 
-[trainee@centos8 tmp]$ ls +trainee@debian11:/tmp$ ls 
-systemd-private-d9ff2376a8a44f0392f860d80c839be4-chronyd.service-6im4Ii  test+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
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **touch** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **touch** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 375: Ligne 372:
  
 <code> <code>
-[trainee@centos8 tmp]$ echo fenestros+trainee@debian11:/tmp$ echo fenestros
 fenestros fenestros
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez la commande **help** avec l'option **echo** pour visualiser les options de la commande. **A faire** : Utilisez la commande **help** avec l'option **echo** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 390: Ligne 385:
  
 <code> <code>
-[trainee@centos8 tmp]$ cp test ~ +trainee@debian11:/tmp$ cp test ~ 
-[trainee@centos8 tmp]$ ls -l ~ +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    Jun  2 09:57 test 
 +drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Videos 
 +-rw-r--r-- 1 trainee trainee  443 May 23 14:50 vitext
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez l'utilisation du caractère ~ (tilde) qui est un caractère spécial indiquant le répertoire personnel de l'utilisateur courant, dans ce cas /home/trainee. **Important** : Notez l'utilisation du caractère ~ (tilde) qui est un caractère spécial indiquant le répertoire personnel de l'utilisateur courant, dans ce cas /home/trainee.
 </WRAP> </WRAP>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **cp** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **cp** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 411: Ligne 413:
  
 <code> <code>
-[trainee@centos8 tmp]$ file ~/test+trainee@debian11:/tmp$ file ~/test
 /home/trainee/test: empty /home/trainee/test: empty
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez que la commande vous indique le type de fichier en fonction de son contenu. Dans l'exemple précédent, puisque le fichier est vide, la commande file ne peut pas indiqué le type de fichier. **Important** : Notez que la commande vous indique le type de fichier en fonction de son contenu. Dans l'exemple précédent, puisque le fichier est vide, la commande file ne peut pas indiqué le type de fichier.
 </WRAP> </WRAP>
Ligne 422: Ligne 424:
  
 <code> <code>
-[trainee@centos8 tmp]$ echo "fenestros" > ~/test+trainee@debian11:/tmp$ echo "fenestros" > ~/test
 </code> </code>
  
Ligne 428: Ligne 430:
  
 <code> <code>
-[trainee@centos8 tmp]$ file ~/test+trainee@debian11:/tmp$ file ~/test
 /home/trainee/test: ASCII text /home/trainee/test: ASCII text
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **file** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **file** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 443: Ligne 443:
  
 <code> <code>
-[trainee@centos8 tmp]$ cat ~/test+trainee@debian11:/tmp$ cat ~/test
 fenestros fenestros
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **cat** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **cat** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 460: Ligne 458:
  
 <code> <code>
-[trainee@centos8 tmp]$ mv ~/test . +trainee@debian11:/tmp$ mv ~/test . 
-[trainee@centos8 tmp]$ ls -l ~ +trainee@debian11:/tmp$ ls -l ~ 
-total 0 +total 36 
-[trainee@centos8 tmp]$ mv test TeSt +drwxr-xr-x 2 trainee trainee 4096 Apr 25 07:03 Desktop 
-[trainee@centos8 tmp]$ ls -l +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    17 Apr 19 12:05 systemd-private-d9ff2376a8a44f0392f860d80c839be4-chronyd.service-6im4Ii +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  443 May 23 14:50 vitext 
 +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------ 2 trainee trainee 4096 Jun  2 09:31 ssh-xO6PQly4PEcb 
 +drwx------ 3 root    root    4096 Jun  2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-colord.service-Y3B8Jg 
 +drwx------ 3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-ModemManager.service-LrTCFg 
 +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   10 Jun  2 09:59 TeSt
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez l'utilisation du raccourci . pour indiquer le répertoire courant. **Important** : Notez l'utilisation du raccourci . pour indiquer le répertoire courant.
 </WRAP> </WRAP>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **mv** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **mv** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 485: Ligne 496:
  
 <code> <code>
-[trainee@centos8 tmp]$ cd ~ +trainee@debian11:/tmp$ cd ~ 
-[trainee@centos8 ~]$ mkdir testdir +trainee@debian11:~$ mkdir testdir 
-[trainee@centos8 ~]$ ls +trainee@debian11:~$ ls 
-testdir+Desktop  Documents  Downloads  Music  Pictures  Public  Templates  testdir  Videos  vitext
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **mkdir** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **mkdir** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 502: Ligne 511:
  
 <code> <code>
-[trainee@centos8 ~]$ rmdir testdir +trainee@debian11:~$ rmdir testdir 
-[trainee@centos8 ~]$ ls +trainee@debian11:~$ ls 
-[trainee@centos8 ~]$ +Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos  vitext
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **rmdir** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **rmdir** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 518: Ligne 525:
  
 <code> <code>
-[trainee@centos8 ~]$ mkdir testdir1 +trainee@debian11:~$ mkdir testdir1 
-[trainee@centos8 ~]$ cd /tmp +trainee@debian11:~$ cd /tmp 
-[trainee@centos8 tmp]$ echo "fenestros" > TeSt +trainee@debian11:/tmp$ echo "fenestros" > TeSt 
-[trainee@centos8 tmp]$ cd ~ +trainee@debian11:/tmp$ cd ~ 
-[trainee@centos8 ~]$ mv /tmp/TeSt ~/testdir1 +trainee@debian11:~$ mv /tmp/TeSt ~/testdir1 
-[trainee@centos8 ~]$ ls -lR testdir1/+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 ~]$ rmdir testdir1/+trainee@debian11:~$ rmdir testdir1/
 rmdir: failed to remove 'testdir1/': Directory not empty rmdir: failed to remove 'testdir1/': Directory not empty
-[trainee@centos8 ~]$ rm -rf testdir1/ +trainee@debian11:~$ rm -rf testdir1/ 
-[trainee@centos8 ~]$ ls +trainee@debian11:~$ ls 
-[trainee@centos8 ~]$ +Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos  vitext
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **rm** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **rm** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 545: Ligne 550:
  
 <code> <code>
-[trainee@centos8 ~]$ touch aac abc bca xyz +trainee@debian11:~$ touch aac abc bca xyz 
-[trainee@centos8 ~]$ ls +trainee@debian11:~$ ls 
-aac  abc  bca  xyz +aac  abc  bca  Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos  vitext  xyz 
-[trainee@centos8 ~]$ ls | sort+trainee@debian11:~$ ls | sort
 aac aac
 abc abc
 bca bca
 +Desktop
 +Documents
 +Downloads
 +Music
 +Pictures
 +Public
 +Templates
 +Videos
 +vitext
 xyz xyz
-[trainee@centos8 ~]$ ls | sort -r+trainee@debian11:~$ ls | sort -r
 xyz xyz
 +vitext
 +Videos
 +Templates
 +Public
 +Pictures
 +Music
 +Downloads
 +Documents
 +Desktop
 bca bca
 abc abc
Ligne 560: Ligne 583:
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez l'utilisation du caractère spécial |, appelé un pipe. Un pipe est utilisé pour présenter sur l'entrée standard de la commande qui suit, la sortie standard de la commande qui précède. **Important** : Notez l'utilisation du caractère spécial |, appelé un pipe. Un pipe est utilisé pour présenter sur l'entrée standard de la commande qui suit, la sortie standard de la commande qui précède.
 </WRAP> </WRAP>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **sort** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **sort** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 575: Ligne 596:
  
 <code> <code>
-[trainee@centos8 ~]$ more /etc/services +trainee@debian11:~$ more /etc/services
-# /etc/services: +
-# $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://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml .
-# port number for both TCP and UDP; hence, most entries here have two entries +
-# even if the protocol doesn't support UDP operations. +
-# Updated from RFC 1700, ``Assigned Numbers'' (October 1994) Not all ports +
-# 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://www.iana.org/assignments/port-numbers +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 nmap package.
-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  port/protocol  [aliases ...]   [# comment]+
  
 tcpmux          1/tcp                           # TCP port service multiplexer tcpmux          1/tcp                           # TCP port service multiplexer
---More--(0%)+echo            7/tcp 
 +echo            7/udp 
 +discard         9/tcp           sink null 
 +discard         9/udp           sink null 
 +systat          11/tcp          users 
 +daytime         13/tcp 
 +daytime         13/udp 
 +netstat         15/tcp 
 +qotd            17/tcp          quote 
 +chargen         19/tcp          ttytst source 
 +chargen         19/udp          ttytst source 
 +ftp-data        20/tcp 
 +ftp             21/tcp 
 +fsp             21/udp          fspd 
 +ssh             22/tcp                          # SSH Remote Login Protocol 
 +telnet          23/tcp 
 +smtp            25/tcp          mail 
 +time            37/tcp          timserver 
 +time            37/udp          timserver 
 +whois           43/tcp          nicname 
 +tacacs          49/tcp                          # Login Host Protocol (TACACS) 
 +tacacs          49/udp 
 +domain          53/tcp                          # Domain Name Server 
 +--More--(7%) 
 +[q]
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : L'utilisation de la touche <key>Entrée</key> permet de défiler le fichier ligne par ligne. L'utilisation de la touche <key>Barre d'espace</key> permet de défiler le fichier écran par écran. L'utilisation de la touche <key>Q</key> permets de revenir au prompt. **Important** : L'utilisation de la touche <key>Entrée</key> permet de défiler le fichier ligne par ligne. L'utilisation de la touche <key>Barre d'espace</key> permet de défiler le fichier écran par écran. L'utilisation de la touche <key>Q</key> permets de revenir au prompt.
 </WRAP> </WRAP>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **more** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **more** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 617: Ligne 646:
  
 <code> <code>
-[trainee@centos8 ~]$ less /etc/services +trainee@debian11:~$ less /etc/services
-# /etc/services: +
-# $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://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml .
-# port number for both TCP and UDP; hence, most entries here have two entries +
-# even if the protocol doesn't support UDP operations. +
-# Updated from RFC 1700, ``Assigned Numbers'' (October 1994) Not all ports +
-# 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://www.iana.org/assignments/port-numbers +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 nmap package.
-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  port/protocol  [aliases ...]   [# comment]+
  
 tcpmux          1/tcp                           # TCP port service multiplexer tcpmux          1/tcp                           # TCP port service multiplexer
 +echo            7/tcp
 +echo            7/udp
 +discard         9/tcp           sink null
 +discard         9/udp           sink null
 +systat          11/tcp          users
 +daytime         13/tcp
 +daytime         13/udp
 +netstat         15/tcp
 +qotd            17/tcp          quote
 +chargen         19/tcp          ttytst source
 +chargen         19/udp          ttytst source
 +ftp-data        20/tcp
 +ftp             21/tcp
 +fsp             21/udp          fspd
 +ssh             22/tcp                          # SSH Remote Login Protocol
 +telnet          23/tcp
 +smtp            25/tcp          mail
 +time            37/tcp          timserver
 +time            37/udp          timserver
 +whois           43/tcp          nicname
 +tacacs          49/tcp                          # Login Host Protocol (TACACS)
 +tacacs          49/udp
 +domain          53/tcp                          # Domain Name Server
 /etc/services /etc/services
 +[q]
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **less** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **less** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 655: Ligne 692:
  
 <code> <code>
-[trainee@centos8 ~]$ find acc+trainee@debian11:~$ find acc
 find: ‘acc’: No such file or directory find: ‘acc’: No such file or directory
-[trainee@centos8 ~]$ find aac+trainee@debian11:~$ find aac
 aac aac
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez que si le fichier n'existe pas le système vous en informe clairement. Notez aussi que ce fichier existe le système vous en informe en vous indiquant son nom. **Important** : Notez que si le fichier n'existe pas le système vous en informe clairement. Notez aussi que ce fichier existe le système vous en informe en vous indiquant son nom.
 </WRAP> </WRAP>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **find** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **find** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 676: Ligne 711:
  
 <code> <code>
-[trainee@centos8 ~]$ su -+trainee@debian11:~$ su -
 Password: fenestros Password: fenestros
-[root@centos8 ~]+root@debian11:~# 
 </code> </code>
  
-<WRAP center round important 60%>+<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.
 </WRAP> </WRAP>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **su** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **su** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 694: Ligne 727:
  
 La commande **locate** sert à rechercher un ou des fichiers dans l'ensemble du système de fichiers en commençant à la racine (/) en spécifiant une chaîne à rechercher en argumant à la commande. La commande locate utilise une base de données afin d'effectuer sa recherche. Pour construire ou mettre à jour cette base de données avant l'utilisation de la commande pour une recherche, il faut utiliser la commande **updatedb** en tant que root. La commande **locate** sert à rechercher un ou des fichiers dans l'ensemble du système de fichiers en commençant à la racine (/) en spécifiant une chaîne à rechercher en argumant à la commande. La commande locate utilise une base de données afin d'effectuer sa recherche. Pour construire ou mettre à jour cette base de données avant l'utilisation de la commande pour une recherche, il faut utiliser la commande **updatedb** en tant que root.
 +
 +Commencez par installer le paquet **mlocate** : 
 +
 +<code>
 +root@debian11:~# apt install mlocate -y
 +</code>
  
 La commande **updatedb** peut être configurée en éditant son fichier de configuration **/etc/updatedb.conf** : La commande **updatedb** peut être configurée en éditant son fichier de configuration **/etc/updatedb.conf** :
  
 <code> <code>
-[root@centos8 ~]# cat /etc/updatedb.conf +root@debian11:~# cat /etc/updatedb.conf 
-PRUNE_BIND_MOUNTS = "yes" +PRUNE_BIND_MOUNTS="yes
-PRUNEFS = "9p afs anon_inodefs auto autofs bdev binfmt_misc cgroup cifs coda configfs cpuset debugfs devpts ecryptfs exofs fuse fuse.sshfs fusectl gfs gfs2 gpfs hugetlbfs inotifyfs iso9660 jffs2 lustre mqueue ncpfs nfs nfs4 nfsd pipefs proc ramfs rootfs rpc_pipefs securityfs selinuxfs sfs sockfs sysfs tmpfs ubifs udf usbfs ceph fuse.ceph" +# PRUNENAMES=".git .bzr .hg .svn" 
-PRUNENAMES = ".git .hg .svn .bzr .arch-ids {arch} CVS" +PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph
-PRUNEPATHS = "/afs /media /mnt /net /sfs /tmp /udev /var/cache/ccache /var/lib/yum/yumdb /var/lib/dnf/yumdb /var/spool/cups /var/spool/squid /var/tmp /var/lib/ceph"+PRUNEFS="NFS afs autofs binfmt_misc ceph cgroup cgroup2 cifs coda configfs curlftpfs debugfs devfs devpts devtmpfs ecryptfs ftpfs fuse.ceph fuse.glusterfs fuse.gvfsd-fuse fuse.mfs fuse.rozofs fuse.sshfs fusectl fusesmb hugetlbfs iso9660 lustre lustre_lite mfs mqueue ncpfs nfs nfs4 ocfs ocfs2 proc pstore rpc_pipefs securityfs shfs smbfs sysfs tmpfs tracefs udev udf usbfs"
 </code> </code>
  
Ligne 708: Ligne 747:
  
 <code> <code>
-[root@centos8 ~]# updatedb +root@debian11:~# updatedb 
-[root@centos8 ~]# locate aac+root@debian11:~# locate aac
 /home/trainee/aac /home/trainee/aac
-/usr/lib/.build-id/10/3879896070484de2e0eaac453ec43579fbb8e2 +/usr/lib/modules/5.10.0-13-amd64/kernel/drivers/scsi/aacraid 
-/usr/lib/.build-id/22/e20bcaaca5ed745d4f5f319ce3cc15e0db8d56 +/usr/lib/modules/5.10.0-13-amd64/kernel/drivers/scsi/aacraid/aacraid.ko 
-/usr/lib/.build-id/32/ec211a3c0121b5439deba3d4d1fb4e9bf97aac +/usr/lib/python3/dist-packages/mutagen/aac.py 
-/usr/lib/.build-id/45/bdf33b3fef84664d179d00e997daac1648973b +/usr/lib/python3/dist-packages/mutagen/__pycache__/aac.cpython-39.pyc 
-/usr/lib/.build-id/4c/5a4eaaca9035bbc2fbf200bd71eda505b568f2 +/usr/lib/python3/dist-packages/quodlibet/formats/aac.py 
-/usr/lib/.build-id/55/2e764cb2c3aaacaeec1027b10ce22fb78a5896 +/usr/lib/python3/dist-packages/quodlibet/formats/__pycache__/aac.cpython-39.pyc 
-/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/65/33988a76dd4aac6840cc9d04ae13ac39869b13 +/usr/lib/x86_64-linux-gnu/libvo-aacenc.so.0 
-/usr/lib/.build-id/79/dc2cf8dc9bd9617d5e897faac79f7458856f19 +/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/f8d384f0b01b7bd13a3aac719f738051e20351 +/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/9a/635a7bcba89b0280c2198ea30d02faaacaac48 +/usr/share/doc/libaacs0/README.txt 
-/usr/lib/.build-id/ac/8c79a966aacb69715f0fb388949dfc48ae88c8 +/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/NOTICE.gz 
-/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/changelog.gz 
-/usr/lib/modules/4.18.0-147.8.1.el8_1.x86_64/kernel/drivers/scsi/aacraid +/usr/share/doc/libvo-aacenc0/copyright
-/usr/lib/modules/4.18.0-147.8.1.el8_1.x86_64/kernel/drivers/scsi/aacraid/aacraid.ko.xz +
-/usr/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/scsi/aacraid +
-/usr/lib/modules/4.18.0-240.22.1.el8_3.x86_64/kernel/drivers/scsi/aacraid/aacraid.ko.xz+
 /usr/share/mime/audio/aac.xml /usr/share/mime/audio/aac.xml
 +/var/lib/dpkg/info/libaacs0:amd64.list
 +/var/lib/dpkg/info/libaacs0:amd64.md5sums
 +/var/lib/dpkg/info/libaacs0:amd64.shlibs
 +/var/lib/dpkg/info/libaacs0:amd64.triggers
 +/var/lib/dpkg/info/libvo-aacenc0:amd64.list
 +/var/lib/dpkg/info/libvo-aacenc0:amd64.md5sums
 +/var/lib/dpkg/info/libvo-aacenc0:amd64.shlibs
 +/var/lib/dpkg/info/libvo-aacenc0:amd64.triggers
 </code> </code>
  
Ligne 742: Ligne 786:
  
 <code> <code>
-[root@centos8 ~]# ls -l /var/lib/mlocate/mlocate.db +root@debian11:~# ls -l /var/lib/mlocate/mlocate.db 
--rw-r-----1 root slocate 1652822 Apr 20 03:52 /var/lib/mlocate/mlocate.db+-rw-r----- 1 root mlocate 2518781 Jun  2 10:58 /var/lib/mlocate/mlocate.db
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Pour plus d'information concernant le format de la base de données, consultez **man 5 locatedb**. **Important** : Pour plus d'information concernant le format de la base de données, consultez **man 5 locatedb**.
 </WRAP> </WRAP>
  
-===Options des commandes=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** des commandes **updatedb** et **locate** pour visualiser les options des commandes. **A faire** : Utilisez l'option **--help** des commandes **updatedb** et **locate** pour visualiser les options des commandes.
 </WRAP> </WRAP>
Ligne 761: Ligne 803:
  
 <code> <code>
-[root@centos8 ~]# whereis passwd +root@debian11:~# whereis passwd 
-passwd: /usr/bin/passwd /etc/passwd /usr/share/man/man1/passwd.1.gz /usr/share/man/man5/passwd.5.gz+passwd: /usr/bin/passwd /etc/passwd /usr/share/man/man1/passwd.1ssl.gz /usr/share/man/man1/passwd.1.gz /usr/share/man/man5/passwd.5.gz
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **whereis** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **whereis** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 776: Ligne 816:
  
 <code> <code>
-[root@centos8 ~]# which passwd+root@debian11:~# which passwd
 /usr/bin/passwd /usr/bin/passwd
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **which** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **which** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 791: Ligne 829:
  
 <code> <code>
-[root@centos8 ~]# uptime +root@debian11:~# uptime 
- 03:55:13 up 15:50,  1 user,  load average: 0.01, 0.00, 0.00+ 11:00:53 up 22 days, 20:23,  2 users,  load average: 0.01, 0.02, 0.00
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **uptime** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **uptime** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 806: Ligne 842:
  
 <code> <code>
-[root@centos8 ~]# w +root@debian11:~# w 
- 03:55:16 up 15:50,  1 user,  load average: 0.01, 0.00, 0.00+ 11:03:42 up 22 days, 20:26,  2 users,  load average: 0.00, 0.00, 0.00
 USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
-trainee  pts/   10.0.2.        02:21    4.00s  0.16s  0.01s sshd: trainee [priv]+trainee  tty7     :              09:31   22days  1:03   0.15s xfce4-session 
 +trainee  pts/   10.0.2.        09:32    1.00s  0.12s  0.05s sshd: trainee [priv]
 </code> </code>
  
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'option **--help** de la commande **w** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **w** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 827: Ligne 862:
  
 <code> <code>
-[root@centos8 ~]# uname -a +root@debian11:~# uname -a 
-Linux centos8.ittraining.loc 4.18.0-240.22.1.el8_3.x86_64 #SMP Thu Apr 8 19:01:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux +Linux debian11 5.10.0-13-amd64 #SMP Debian 5.10.106-(2022-03-17) x86_64 GNU/Linux 
-[root@centos8 ~]# uname -s+root@debian11:~# uname -s
 Linux Linux
-[root@centos8 ~]# uname -n +root@debian11:~# uname -n 
-centos8.ittraining.loc +debian11 
-[root@centos8 ~]# uname -r +root@debian11:~# uname -r 
-4.18.0-240.22.1.el8_3.x86_64 +5.10.0-13-amd64 
-[root@centos8 ~]# uname -v +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 ~]# uname -m+root@debian11:~# uname -m
 x86_64 x86_64
-[root@centos8 ~]# uname -p +root@debian11:~# uname -p 
-x86_64 +unknown 
-[root@centos8 ~]# uname -i +root@debian11:~# uname -i 
-x86_64 +unknown 
-[root@centos8 ~]# uname -o+root@debian11:~# uname -o
 GNU/Linux GNU/Linux
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **uname** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **uname** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 858: Ligne 891:
  
 <code> <code>
-[root@centos8 ~]# du -sh /* 2>/dev/null +root@debian11:~# du -sh /* 2>/dev/null 
-0 /bin +      /bin 
-192M /boot +58M     /boot 
-0 /dev +      /dev 
-23M /etc +9.5M    /etc 
-16K /home +1.4M    /home 
-0 /lib +      /initrd.img 
-0 /lib64 +0       /initrd.img.old 
-0 /media +0       /lib 
-0 /mnt +      /lib32 
-0 /opt +0       /lib64 
-0 /proc +      /libx32 
-32K /root +16K     /lost+found 
-8.6M /run +8.0K    /media 
-0 /sbin +4.0K    /mnt 
-0 /srv +4.0K    /opt 
-0 /sys +      /proc 
-0 /tmp +24K     /root 
-1.9G /usr +992K    /run 
-211M /var+      /sbin 
 +4.0K    /srv 
 +      /sys 
 +84K     /tmp 
 +3.0G    /usr 
 +334M    /var 
 +0       /vmlinuz 
 +0       /vmlinuz.old
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez l'utilisation de la redirection **2>/dev/null**. Cette chaîne envoie les erreurs éventuelles, contenues dans le canal 2 appelé le canal des erreurs, à **/dev/null** de façon à ce que les erreurs n'apparaissent pas à l'écran. Le canal des erreurs sera couvert dans le cours **La Ligne de Commande**. **Important** : Notez l'utilisation de la redirection **2>/dev/null**. Cette chaîne envoie les erreurs éventuelles, contenues dans le canal 2 appelé le canal des erreurs, à **/dev/null** de façon à ce que les erreurs n'apparaissent pas à l'écran. Le canal des erreurs sera couvert dans le cours **La Ligne de Commande**.
 </WRAP> </WRAP>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **du** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **du** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 895: Ligne 933:
  
 <code> <code>
-[root@centos8 ~]# clear +root@debian11:~# clear
- +
-[root@centos8 ~]# +
 </code> </code>
  
Ligne 905: Ligne 941:
  
 <code> <code>
-[root@centos8 ~]# exit+root@debian11:~# exit
 logout logout
-[trainee@centos8 ~]$  +trainee@debian11:~$  
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez la commande **help** avec l'option **exit** pour visualiser les options de la commande. **A faire** : Utilisez la commande **help** avec l'option **exit** pour visualiser les options de la commande.
 </WRAP> </WRAP>
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'option **logout** pour visualiser les options de la commande. **A faire** : Utilisez la commande **help** avec l'option **logout** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 931: Ligne 963:
  
 <code> <code>
-[trainee@centos8 ~]$ sleep 10+trainee@debian11:~$ sleep 10
  
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **sleep** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **sleep** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 945: Ligne 975:
 La commande **wall**  envoie  un  message  à  tous  les  utilisateurs  connectés dont l’autorisation mesg(1) est positionnée à yes. Le message peut être fourni en tant qu’argument sur la ligne de commande, ou il peut être envoyé sur l’entrée standard de wall.  La commande **wall**  envoie  un  message  à  tous  les  utilisateurs  connectés dont l’autorisation mesg(1) est positionnée à yes. Le message peut être fourni en tant qu’argument sur la ligne de commande, ou il peut être envoyé sur l’entrée standard de wall. 
  
-Ouvrez donc un deuxième terminal via ssh en tant que trainee puis dans le premier envoyez un message :+Envoyez un message :
  
 <code> <code>
-[trainee@centos8 ~]$ su - +trainee@debian11:~$ su - 
-Password:  +Password: fenestros 
-[root@centos8 ~]# wall this is a message from root+root@debian11:~# wall this is a message from root
                                                                                                                                                                
-Broadcast message from trainee@centos8.ittraining.loc (pts/0) (Tue Apr 20 04:11+Broadcast message from trainee@debian11 (pts/1) (Thu Jun  2 11:09:04 2022)   
                                                                                                                                                                
 this is a message from root this is a message from root
                                                                                                                                                                
-[root@centos8 ~]#+root@debian11:~#
 </code> </code>
  
-Constatez que le message est affiché dans le deuxième terminal : +<WRAP center round todo
- +**A faire** Utilisez l'option **--help** de la commande **wall** pour visualiser les options de la commande
-<code+</WRAP>
-Activate the web console withsystemctl enable --now cockpit.socket +
- +
-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 ~]$  +
-                                                                            +
-</code> +
- +
-Notez que la commande wall ignore la variable d’environnement TZL’heure affichée est basée sur les paramètres de régionalisation du système : +
- +
-<code> +
-[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:
  
 <code> <code>
-[root@centos8 ~]# seq 10+root@debian11:~# seq 10
 1 1
 2 2
Ligne 1003: Ligne 1015:
 9 9
 10 10
-[root@centos8 ~]# seq 20 30+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 ~]# seq 20 10 90+
 20 20
 30 30
Ligne 1024: Ligne 1036:
 80 80
 90 90
-[root@centos8 ~]#  
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **seq** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **seq** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 1037: Ligne 1046:
 La commande **screen** est un « multiplexeur de terminaux » permettant d'ouvrir jusqu'à 10 ( numérotés de 0 à 9 ) terminaux dans une même console, de passer de l'un à l'autre et de les récupérer plus tard. La commande **screen** est un « multiplexeur de terminaux » permettant d'ouvrir jusqu'à 10 ( numérotés de 0 à 9 ) terminaux dans une même console, de passer de l'un à l'autre et de les récupérer plus tard.
  
-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 à partir du dépôt EPEL :+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 :
  
 <code> <code>
-[root@centos8 ~] which screen +root@debian11:~# which screen
-/usr/bin/which: no screen in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)+
  
-[root@centos8 ~]dnf makecache +root@debian11:~# apt install screen -y
-CentOS Linux 8 AppStream                                                                                                                                                                                    7.9 kB/s | 4.3 kB     00:00     +
-CentOS Linux 8 - BaseOS                                                                                                                                                                                        31 kB/s | 3.9 kB     00:00     +
-CentOS Linux 8 - Extras                                                                                                                                                                                        17 kB/s | 1.5 kB     00:00     +
-Metadata cache created.+
  
-[root@centos8 ~]# dnf install screen -y +root@debian11:~# which screen
-Last metadata expiration check0: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                                                                                                                                                        522 kB/s | 559 kB     00:01     +
-Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                                                2.5 MB/s | 9.4 MB     00:03     +
-Last metadata expiration check: 0:00:01 ago on Tue 20 Apr 2021 04:36:11 AM EDT. +
-Dependencies resolved. +
-============================================================================================================================================================================================================================================== +
- Package                                                 Architecture                                            Version                                                          Repository                                             Size +
-============================================================================================================================================================================================================================================== +
-Installing: +
- screen                                                  x86_64                                                  4.6.2-10.el8                                                     epel                                                  582 k +
- +
-Transaction Summary +
-============================================================================================================================================================================================================================================== +
-Install  1 Package +
- +
-Total download size: 582 k +
-Installed size: 971 k +
-Downloading Packages: +
-screen-4.6.2-10.el8.x86_64.rpm                                                                                                                                                                                283 kB/s | 582 kB     00:02     +
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +
-Total                                                                                                                                                                                                         229 kB/s | 582 kB     00:02      +
-warning: /var/cache/dnf/epel-6519ee669354a484/packages/screen-4.6.2-10.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY +
-Extra Packages for Enterprise Linux 8 - x86_64                                                                                                                                                                1.6 MB/s | 1.6 kB     00:00     +
-Importing GPG key 0x2F86D6A1: +
- Userid     : "Fedora EPEL (8) <epel@fedoraproject.org>" +
- Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1 +
- From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 +
-Key imported successfully +
-Running transaction check +
-Transaction check succeeded. +
-Running transaction test +
-Transaction test succeeded. +
-Running transaction +
-  Preparing        :                                                                                                                                                                                                                      1/1  +
-  Running scriptlet: screen-4.6.2-10.el8.x86_64                                                                                                                                                                                           1/1  +
-  Installing       : screen-4.6.2-10.el8.x86_64                                                                                                                                                                                           1/1  +
-  Running scriptlet: screen-4.6.2-10.el8.x86_64                                                                                                                                                                                           1/1  +
-  Verifying        : screen-4.6.2-10.el8.x86_64                                                                                                                                                                                           1/1  +
- +
-Installed: +
-  screen-4.6.2-10.el8.x86_64                                                                                                                                                                                                                   +
- +
-Complete! +
- +
-[root@centos8 ~]# which screen+
 /usr/bin/screen /usr/bin/screen
 </code> </code>
Ligne 1112: Ligne 1060:
  
 <code> <code>
-[root@centos8 ~]# screen -S mysession+root@debian11:~# screen -S mysession
 </code> </code>
- 
-<WRAP center round important 60%> 
-**Important** - Vous verrez en tant que titre de votre terminal la chaîne **[screen 0: root@centos8:~]**. 
-</WRAP> 
- 
-Appuyez maintenant sur <key>CTRL</key> <key>a</key> puis relachez la touche <key>a</key> et appuyez sur la touche <key>c</key> pour créer un deuxième screen imbriqué dans la même session. 
- 
-<WRAP center round important 60%> 
-**Important** - Vous verrez en tant que titre de votre terminal la chaîne **[screen 1: root@centos8:~]**. 
-</WRAP> 
- 
-Pour repasser au premier screen, appuyez sur <key>CTRL</key> <key>a</key> <key>a</key>. Ceci permet de basculer entre les deux derniers screens. 
  
 Pour voir les screens actifs, utilisez la commande suivante : Pour voir les screens actifs, utilisez la commande suivante :
  
 <code> <code>
-[root@centos8 ~]# screen -ls+root@debian11:~# screen -ls
 There is a screen on: There is a screen on:
-        12149.mysession (Attached)+        22935.mysession (06/02/2022 11:15:27 AM)        (Attached)
 1 Socket in /run/screen/S-root. 1 Socket in /run/screen/S-root.
 </code> </code>
Ligne 1139: Ligne 1075:
  
 <code> <code>
-[root@centos8 ~]# sleep 9999 & +root@debian11:~# sleep 9999 & 
-[1] 12187 +[1] 22943 
-[root@centos8 ~]# jobs -l +root@debian11:~# jobs -l 
-[1]+ 12187 Running                 sleep 9999 & +[1]+ 22943 Running                 sleep 9999 & 
-[root@centos8 ~]# +
 </code> </code>
  
Ligne 1149: Ligne 1084:
  
 <code> <code>
-[root@centos8 ~]# screen -S mysession +root@debian11:~# screen -S mysession 
-[detached from 12149.mysession] +[detached from 22935.mysession] 
-[root@centos8 ~]+root@debian11:~#  
 </code> </code>
  
-<WRAP center round important 60%> +Pour rattacher le screen, saisissez la commande **screen -r** :
-**Important** - Vous verrez en tant que titre de votre terminal la chaîne **root@centos8:~**. +
-</WRAP> +
- +
-Pour rattacher le screen, saisissez la commande suivante :+
  
 <code> <code>
-[root@centos8 ~]# screen -r+root@debian11:~# screen -r
 </code> </code>
  
-<WRAP center round important 60%+Vous verrez : 
-**Important** Vous verrez en tant que titre de votre terminal la chaîne **[screen 0: root@centos8:~]**. + 
-</WRAP>+<code
 +root@debian11:~# screen -ls 
 +There is a screen on: 
 +        22935.mysession (06/02/2022 11:15:27 AM)        (Attached) 
 +1 Socket in /run/screen/S-root. 
 +root@debian11:~# sleep 9999 & 
 +[122943 
 +root@debian11:~# jobs -l 
 +[1]+ 22943 Running                 sleep 9999 & 
 +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 :
  
 <code> <code>
-[root@centos8 ~]# jobs -l +root@debian11:~# jobs -l 
-[1]+ 12187 Running                 sleep 9999 &+[1]+ 22943 Running                 sleep 9999 &
 </code> </code>
- 
-Pour naviguer entre les screens il convient d'appuyer sur <key>CTRL</key> <key>a</key> puis relachez la touche <key>a</key> et appuyez sur la touche <key>n</key> ou d'appuyer sur <key>CTRL</key> <key>a</key> puis relachez la touche <key>a</key> et appuyez sur la touche <key>p</key>. 
  
 Détachez de nouveau le screen actuel en appuyant sur <key>CTRL</key> <key>a</key> puis en relachant la touche <key>a</key> et en appuyant sur la touche <key>d</key> : Détachez de nouveau le screen actuel en appuyant sur <key>CTRL</key> <key>a</key> puis en relachant la touche <key>a</key> et en appuyant sur la touche <key>d</key> :
  
 <code> <code>
-[root@centos8 ~]# screen -S mysession +root@debian11:~# screen -r 
-[detached from 12149.mysession] +[detached from 22935.mysession] 
-[root@centos8 ~]+root@debian11:~# 
 </code> </code>
- 
-<WRAP center round important 60%> 
-**Important** - Vous verrez en tant que titre de votre terminal la chaîne **root@centos8:~**. 
-</WRAP> 
  
 Créez maintenant un autre screen, cette fois-ci, non imbriqué : Créez maintenant un autre screen, cette fois-ci, non imbriqué :
  
 <code> <code>
-[root@centos8 ~]# screen -S mysession1+root@debian11:~# screen -S mysession1
 </code> </code>
  
Ligne 1198: Ligne 1133:
  
 <code> <code>
-[root@centos8 ~]# screen -ls+root@debian11:~# screen -ls
 There are screens on: There are screens on:
-        12191.mysession1        (Attached) +        23041.mysession1        (06/02/2022 11:23:22 AM)        (Attached) 
-        12149.mysession (Detached)+        22935.mysession (06/02/2022 11:15:28 AM)        (Detached)
 2 Sockets in /run/screen/S-root. 2 Sockets in /run/screen/S-root.
 </code> </code>
  
-<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:~]**. +
-</WRAP> +
- +
-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 :+
  
 <code> <code>
-[root@centos8 ~]# jobs -l +root@debian11:~# jobs -l 
-[root@centos8 ~]+root@debian11:~#  
 </code> </code>
  
-Ratachez maintenant le screen **mysession** :+Ratachez maintenant le screen **mysession** en utilisant son PID :
  
 <code> <code>
-[root@centos8 ~]# screen -r 12149 +root@debian11:~# screen -r 22935
- +
-[root@centos8 ~]# screen -ls +
-There is a screen on: +
-        12149.mysession (Attached) +
-1 Socket in /run/screen/S-root. +
-[root@centos8 ~]# sleep 9999 & +
-[1] 12187 +
-[root@centos8 ~]# jobs -l +
-[1]+ 12187 Running                 sleep 9999 & +
-[root@centos8 ~]# jobs -l +
-[1]+ 12187 Running                 sleep 9999 & +
-[root@centos8 ~]# +
 </code> </code>
- 
-<WRAP center round important 60%> 
-**Important** - Vous verrez en tant que titre de votre terminal la chaîne **[screen 0: root@centos8:~]**. 
-</WRAP> 
  
 Constatez de nouveau le résultat : Constatez de nouveau le résultat :
  
 <code> <code>
-[root@centos8 ~]# screen -ls+root@debian11:~# screen -ls
 There are screens on: There are screens on:
-        12191.mysession1        (Attached) +        23041.mysession1        (06/02/2022 11:23:21 AM)        (Attached) 
-        12149.mysession (Attached)+        22935.mysession (06/02/2022 11:15:27 AM)        (Attached)
 2 Sockets in /run/screen/S-root. 2 Sockets in /run/screen/S-root.
 </code> </code>
  
-Détachez-vous du screen en appuyant sur <key>CTRL</key> <key>a</key> puis relachez la touche <key>a</key> et appuyez sur la touche <key>d</key> +Détachez-vous du screen en appuyant sur <key>CTRL</key> <key>a</key> puis relachez la touche <key>a</key> et appuyez sur la touche <key>d</key>.
- +
-<code> +
-[root@centos8 ~]# which screen +
-/usr/bin/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 ~]#  +
-</code> +
- +
-<WRAP center round important 60%> +
-**Important** - Vous verrez en tant que titre de votre terminal la chaîne **root@centos8:~**. +
-</WRAP>+
  
 Constatez de nouveau le résultat : Constatez de nouveau le résultat :
  
 <code> <code>
-[root@centos8 ~]# screen -ls+root@debian11:~# screen -ls
 There are screens on: There are screens on:
- 12191.mysession1 (Detached) +        23041.mysession1        (06/02/2022 11:23:22 AM)        (Detached) 
- 12149.mysession (Attached)+        22935.mysession (06/02/2022 11:15:28 AM)        (Attached)
 2 Sockets in /run/screen/S-root. 2 Sockets in /run/screen/S-root.
 </code> </code>
Ligne 1279: Ligne 1178:
  
 <code> <code>
-[root@centos8 ~]# screen -XS 12191 quit +root@debian11:~# screen -XS 23041 quit 
-[root@centos8 ~]# screen -XS 12149 quit +root@debian11:~# screen -XS 22935 quit 
-[root@centos8 ~]# screen -ls+root@debian11:~# screen -ls
 No Sockets found in /run/screen/S-root. No Sockets found in /run/screen/S-root.
 </code> </code>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **screen** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **screen** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 1305: Ligne 1202:
  
 <code> <code>
-[root@centos8 ~]# ls -lai /tmp +root@debian11:~# ls -lai /tmp 
-total 0 +total 68 
-16800396 drwxrwxrwt.  8 root root 172 Apr 20 04:36 +654081 drwxrwxrwt 14 root    root    4096 Jun  2 11:20 
-     128 dr-xr-xr-x. 17 root root 224 Apr 19 11:50 .. +     2 drwxr-xr-x 19 root    root    4096 Apr 25 06:50 .. 
-25447488 drwxrwxrwt 2 root root   6 Apr 19 11:37 .font-unix +654292 drwxrwxrwt  2 root    root    4096 May 10 14:37 .font-unix 
- 8388741 drwxrwxrwt 2 root root   6 Apr 19 11:37 .ICE-unix +654290 drwxrwxrwt  2 root    root    4096 Jun  2 09:31 .ICE-unix 
-     143 drwx------.  3 root root  17 Apr 19 12:05 systemd-private-d9ff2376a8a44f0392f860d80c839be4-chronyd.service-6im4Ii +785012 drwxr-xr-x  2 root    root    4096 May 10 16:05 inode 
-  621976 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .Test-unix +790319 drwx------  2 trainee trainee 4096 Jun  2 09:31 ssh-xO6PQly4PEcb 
-  621954 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .X11-unix +921110 drwx------  3 root    root    4096 Jun  2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-colord.service-Y3B8Jg 
-17319048 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .XIM-unix +921100 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-ModemManager.service-LrTCFg 
-[root@centos8 ~]# ls -ali /tmp +790929 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-logind.service-KILQOi 
-total 0 +654294 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-timesyncd.service-it6W3i 
-16800396 drwxrwxrwt.  8 root root 172 Apr 20 04:36 +921090 drwx------  3 root    root    4096 Jun  2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-upower.service-mPN3Xg 
-     128 dr-xr-xr-x. 17 root root 224 Apr 19 11:50 .. +654293 drwxrwxrwt  2 root    root    4096 May 10 14:37 .Test-unix 
-25447488 drwxrwxrwt 2 root root   6 Apr 19 11:37 .font-unix +654296 -r--r--r--  1 root    root      11 May 10 14:37 .X0-lock 
- 8388741 drwxrwxrwt 2 root root   6 Apr 19 11:37 .ICE-unix +654085 drwxrwxrwt  2 root    root    4096 Jun  2 11:20 .X11-unix 
-     143 drwx------.  3 root root  17 Apr 19 12:05 systemd-private-d9ff2376a8a44f0392f860d80c839be4-chronyd.service-6im4Ii +654304 -r--r--r--  1 root    root      11 Jun  2 11:20 .X1-lock 
-  621976 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .Test-unix +654303 -rw-------  1 trainee trainee  418 Jun  2 09:31 .xfsm-ICE-YLHXM1 
-  621954 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .X11-unix +654291 drwxrwxrwt  2 root    root    4096 May 10 14:37 .XIM-unix 
-17319048 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .XIM-unix +root@debian11:~# ls -ali /tmp 
-[root@centos8 ~]# ls -ial /tmp +total 68 
-total 0 +654081 drwxrwxrwt 14 root    root    4096 Jun  2 11:20 
-16800396 drwxrwxrwt.  8 root root 172 Apr 20 04:36 +     2 drwxr-xr-x 19 root    root    4096 Apr 25 06:50 .. 
-     128 dr-xr-xr-x. 17 root root 224 Apr 19 11:50 .. +654292 drwxrwxrwt  2 root    root    4096 May 10 14:37 .font-unix 
-25447488 drwxrwxrwt 2 root root   6 Apr 19 11:37 .font-unix +654290 drwxrwxrwt  2 root    root    4096 Jun  2 09:31 .ICE-unix 
- 8388741 drwxrwxrwt 2 root root   6 Apr 19 11:37 .ICE-unix +785012 drwxr-xr-x  2 root    root    4096 May 10 16:05 inode 
-     143 drwx------.  3 root root  17 Apr 19 12:05 systemd-private-d9ff2376a8a44f0392f860d80c839be4-chronyd.service-6im4Ii +790319 drwx------  2 trainee trainee 4096 Jun  2 09:31 ssh-xO6PQly4PEcb 
-  621976 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .Test-unix +921110 drwx------  3 root    root    4096 Jun  2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-colord.service-Y3B8Jg 
-  621954 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .X11-unix +921100 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-ModemManager.service-LrTCFg 
-17319048 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .XIM-unix+790929 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-logind.service-KILQOi 
 +654294 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-timesyncd.service-it6W3i 
 +921090 drwx------  3 root    root    4096 Jun  2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-upower.service-mPN3Xg 
 +654293 drwxrwxrwt  2 root    root    4096 May 10 14:37 .Test-unix 
 +654296 -r--r--r--  1 root    root      11 May 10 14:37 .X0-lock 
 +654085 drwxrwxrwt  2 root    root    4096 Jun  2 11:20 .X11-unix 
 +654304 -r--r--r--  1 root    root      11 Jun  2 11:20 .X1-lock 
 +654303 -rw-------  1 trainee trainee  418 Jun  2 09:31 .xfsm-ICE-YLHXM1 
 +654291 drwxrwxrwt  2 root    root    4096 May 10 14:37 .XIM-unix 
 +root@debian11:~# ls -ial /tmp 
 +total 68 
 +654081 drwxrwxrwt 14 root    root    4096 Jun  2 11:20 
 +     2 drwxr-xr-x 19 root    root    4096 Apr 25 06:50 .. 
 +654292 drwxrwxrwt  2 root    root    4096 May 10 14:37 .font-unix 
 +654290 drwxrwxrwt  2 root    root    4096 Jun  2 09:31 .ICE-unix 
 +785012 drwxr-xr-x  2 root    root    4096 May 10 16:05 inode 
 +790319 drwx------  2 trainee trainee 4096 Jun  2 09:31 ssh-xO6PQly4PEcb 
 +921110 drwx------  3 root    root    4096 Jun  2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-colord.service-Y3B8Jg 
 +921100 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-ModemManager.service-LrTCFg 
 +790929 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-logind.service-KILQOi 
 +654294 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-timesyncd.service-it6W3i 
 +921090 drwx------  3 root    root    4096 Jun  2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-upower.service-mPN3Xg 
 +654293 drwxrwxrwt  2 root    root    4096 May 10 14:37 .Test-unix 
 +654296 -r--r--r--  1 root    root      11 May 10 14:37 .X0-lock 
 +654085 drwxrwxrwt  2 root    root    4096 Jun  2 11:20 .X11-unix 
 +654304 -r--r--r--  1 root    root      11 Jun  2 11:20 .X1-lock 
 +654303 -rw-------  1 trainee trainee  418 Jun  2 09:31 .xfsm-ICE-YLHXM1 
 +654291 drwxrwxrwt  2 root    root    4096 May 10 14:37 .XIM-unix
 </code> </code>
  
Ligne 1340: Ligne 1264:
  
 <code> <code>
-[root@centos8 ~]# ls -l --all --inode /tmp +root@debian11:~# ls -l --all --inode /tmp 
-total 0 +total 68 
-16800396 drwxrwxrwt.  8 root root 172 Apr 20 04:36 +654081 drwxrwxrwt 14 root    root    4096 Jun  2 11:20 . 
-     128 dr-xr-xr-x. 17 root root 224 Apr 19 11:50 .. +     2 drwxr-xr-x 19 root    root    4096 Apr 25 06:50 .. 
-25447488 drwxrwxrwt 2 root root   6 Apr 19 11:37 .font-unix +654292 drwxrwxrwt  2 root    root    4096 May 10 14:37 .font-unix 
- 8388741 drwxrwxrwt 2 root root   6 Apr 19 11:37 .ICE-unix +654290 drwxrwxrwt  2 root    root    4096 Jun  2 09:31 .ICE-unix 
-     143 drwx------.  3 root root  17 Apr 19 12:05 systemd-private-d9ff2376a8a44f0392f860d80c839be4-chronyd.service-6im4Ii +785012 drwxr-xr-x  2 root    root    4096 May 10 16:05 inode 
-  621976 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .Test-unix +790319 drwx------  2 trainee trainee 4096 Jun  2 09:31 ssh-xO6PQly4PEcb 
-  621954 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .X11-unix +921110 drwx------  3 root    root    4096 Jun  2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-colord.service-Y3B8Jg 
-17319048 drwxrwxrwt.  2 root root   6 Apr 19 11:37 .XIM-unix +921100 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-ModemManager.service-LrTCFg 
-[root@centos8 ~]# ls -l --allinode /tmp+790929 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-logind.service-KILQOi 
 +654294 drwx------  3 root    root    4096 May 10 14:37 systemd-private-850c80cdbc444b4d9c7cb40b48706231-systemd-timesyncd.service-it6W3i 
 +921090 drwx------  3 root    root    4096 Jun  2 09:31 systemd-private-850c80cdbc444b4d9c7cb40b48706231-upower.service-mPN3Xg 
 +654293 drwxrwxrwt  2 root    root    4096 May 10 14:37 .Test-unix 
 +654296 -r--r--r--  1 root    root      11 May 10 14:37 .X0-lock 
 +654085 drwxrwxrwt  2 root    root    4096 Jun  2 11:20 .X11-unix 
 +654304 -r--r--r--  1 root    root      11 Jun  2 11:20 .X1-lock 
 +654303 -rw-------  1 trainee trainee  418 Jun  2 09:31 .xfsm-ICE-YLHXM1 
 +654291 drwxrwxrwt  2 root    root    4096 May 10 14:37 .XIM-unix 
 + 
 +root@debian11:~# ls -l --allinode /tmp
 ls: unrecognized option '--allinode' ls: unrecognized option '--allinode'
 Try 'ls --help' for more information. Try 'ls --help' for more information.
 </code> </code>
  
-<WRAP center round important 60%>+<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.
 </WRAP> </WRAP>
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'option **--help** de la commande **grep** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **grep** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 1430: Ligne 1362:
 La commande **egrep** est identique à la commande **grep -E**. Dans les deux cas, l'utilisation des expressions régulières est étendue aux ERe. La commande **egrep** est identique à la commande **grep -E**. Dans les deux cas, l'utilisation des expressions régulières est étendue aux ERe.
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **egrep** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **egrep** pour visualiser les options de la commande.
 </WRAP> </WRAP>
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'expressions régulières. 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'expressions régulières.
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **fgrep** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **fgrep** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 1451: Ligne 1379:
  
 <code> <code>
-[root@centos8 ~]# cd /tmp +root@debian11:~# cd /tmp 
-[root@centos8 tmp]# vi greptest +root@debian11:/tmp# vi greptest 
-[root@centos8 tmp]# cat greptest+root@debian11:/tmp# cat greptest
 fenestrOS fenestrOS
 fenestros fenestros
Ligne 1466: Ligne 1394:
  
 <code> <code>
-[root@centos8 ~]# grep '[a-zA-Z]' /tmp/greptest+root@debian11:/tmp# grep '[a-zA-Z]' /tmp/greptest
 fenestrOS fenestrOS
 fenestros fenestros
Ligne 1477: Ligne 1405:
  
 <code> <code>
-[root@centos8 ~]# grep '[a-zA-Z0-9]' /tmp/greptest+root@debian11:/tmp# grep '[a-zA-Z0-9]' /tmp/greptest
 fenestrOS fenestrOS
 fenestros fenestros
Ligne 1486: Ligne 1414:
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez la présence de la ligne 555-5555. **Important** : Notez la présence de la ligne 555-5555.
 </WRAP> </WRAP>
Ligne 1493: Ligne 1421:
  
 <code> <code>
-[root@centos8 ~]# grep '[0-9]\{3\}-[0-9]\{4\}' /tmp/greptest+root@debian11:/tmp# grep '[0-9]\{3\}-[0-9]\{4\}' /tmp/greptest
 555-5555 555-5555
 </code> </code>
Ligne 1500: Ligne 1428:
  
 <code> <code>
-[root@centos8 ~]# grep '^.$' /tmp/greptest+root@debian11:/tmp# grep '^.$' /tmp/greptest
 f f
 £ £
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez l'utilisation des caractères spéciaux le début de ligne : ^, n'importe quel caractère : . et la fin de ligne : $. **Important** : Notez l'utilisation des caractères spéciaux le début de ligne : ^, n'importe quel caractère : . et la fin de ligne : $.
 </WRAP> </WRAP>
Ligne 1512: Ligne 1440:
  
 <code> <code>
-[root@centos8 ~]# grep '^\.' /tmp/greptest+root@debian11:/tmp# grep '^\.' /tmp/greptest
 .fenestros .fenestros
 .fe .fe
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez l'utilisation du caractère d'échappement \ pour annuler l'effet du caractère spécial **.** **Important** : Notez l'utilisation du caractère d'échappement \ pour annuler l'effet du caractère spécial **.**
 </WRAP> </WRAP>
  
-<WRAP center round important 60%>+<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 'directory' -e "pattern"**. Vous pouvez aussi spécifier les extentions des fichiers dans lesquels vous voulez rechercher la chaîne : **grep --include={*.doc,*.xls} -rnw 'directory' -e "pattern"**. Dernièrement vous pouvez exclure des fichiers de la recherche de la façon suivante : **grep --exclude=*.doc -rnw 'directory' -e "pattern"**. **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 'directory' -e "pattern"**. Vous pouvez aussi spécifier les extentions des fichiers dans lesquels vous voulez rechercher la chaîne : **grep --include={*.doc,*.xls} -rnw 'directory' -e "pattern"**. Dernièrement vous pouvez exclure des fichiers de la recherche de la façon suivante : **grep --exclude=*.doc -rnw 'directory' -e "pattern"**.
 </WRAP> </WRAP>
Ligne 1528: Ligne 1456:
  
 <code> <code>
-[root@centos8 tmp]# vi greptest +root@debian11:/tmp# vi greptest 
-[root@centos8 tmp]# cat greptest+root@debian11:/tmp# cat greptest
 # Starting comment # Starting comment
 fenestrOS fenestrOS
Ligne 1548: Ligne 1476:
  
 <code> <code>
-[root@centos8 ~]# grep -E -v '^(#|$)' /tmp/greptest+root@debian11:/tmp# grep -E -v '^(#|$)' /tmp/greptest
 fenestrOS fenestrOS
 fenestros fenestros
Ligne 1558: Ligne 1486:
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez l'utilisation des parenthèses pour faire un regroupement ainsi que le pipe pour représenter un OU. L'expression '^(#|$)' indique donc "toute ligne commençant par le caractère #" OU "toute ligne où le début de la ligne est aussi la fin de la ligne". **Important** : Notez l'utilisation des parenthèses pour faire un regroupement ainsi que le pipe pour représenter un OU. L'expression '^(#|$)' indique donc "toute ligne commençant par le caractère #" OU "toute ligne où le début de la ligne est aussi la fin de la ligne".
 </WRAP> </WRAP>
Ligne 1565: Ligne 1493:
  
 <code> <code>
-[root@centos8 ~]# egrep -v '^(#|$)'  /tmp/greptest > /tmp/greptest1 +root@debian11:/tmp# egrep -v '^(#|$)'  /tmp/greptest > /tmp/greptest1 
-[root@centos8 ~]# cat /tmp/greptest1+root@debian11:/tmp# cat /tmp/greptest1
 fenestrOS fenestrOS
 fenestros fenestros
Ligne 1576: Ligne 1504:
 </code> </code>
  
-<WRAP center round important 60%>+<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'autres sont vides ou en commentaires. De cette façon vous pouvez généré facilement un fichier ne contenant que les directives activées. **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'autres sont vides ou en commentaires. De cette façon vous pouvez généré facilement un fichier ne contenant que les directives activées.
 </WRAP> </WRAP>
Ligne 1583: Ligne 1511:
  
 <code> <code>
-[root@centos8 tmp]# vi greptest +root@debian11:/tmp# vi greptest 
-[root@centos8 tmp]# cat greptest+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:
  
 <code> <code>
-[root@centos8 ~]# fgrep '^' /tmp/greptest+root@debian11:/tmp# fgrep '^' /tmp/greptest
 ^ This line will be used to demonstrate the use of fgrep ^ This line will be used to demonstrate the use of fgrep
 </code> </code>
Ligne 1611: Ligne 1539:
  
 <code> <code>
-[root@centos8 ~]# grep '^' /tmp/greptest+root@debian11:/tmp# grep '^' /tmp/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 1631: Ligne 1559:
  
 <code> <code>
-[root@centos8 ~]# grep '^\^' /tmp/greptest+root@debian11:/tmp# grep '^\^' /tmp/greptest
 ^ This line will be used to demonstrate the use of fgrep ^ This line will be used to demonstrate the use of fgrep
 </code> </code>
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'option **--help** de la commande **sed** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **sed** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 1679: Ligne 1607:
  
 <code> <code>
-[root@centos8 ~]# sed '1,10d' /etc/services | more +root@debian11:/tmp# sed '1,10d' /etc/services | more
-# are included, only the more common ones. +
-+
-# The latest IANA port assignments can be gotten from +
-#       http://www.iana.org/assignments/port-numbers +
-# 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  port/protocol  [aliases ...]   [# comment] +
- +
-tcpmux          1/tcp                           # TCP port service multiplexer +
-tcpmux          1/udp                           # TCP port service multiplexer +
-rje             5/tcp                           # Remote Job Entry +
-rje             5/udp                           # Remote Job Entry +
-echo            7/tcp+
 echo            7/udp echo            7/udp
 discard         9/tcp           sink null discard         9/tcp           sink null
 discard         9/udp           sink null discard         9/udp           sink null
 systat          11/tcp          users systat          11/tcp          users
-systat          11/udp          users 
 daytime         13/tcp daytime         13/tcp
---Plus--                    +daytime         13/udp 
 +netstat         15/tcp 
 +qotd            17/tcp          quote 
 +chargen         19/tcp          ttytst source 
 +chargen         19/udp          ttytst source 
 +ftp-data        20/tcp 
 +ftp             21/tcp 
 +fsp             21/udp          fspd 
 +ssh             22/tcp                          # SSH Remote Login Protocol 
 +telnet          23/tcp 
 +smtp            25/tcp          mail 
 +time            37/tcp          timserver 
 +time            37/udp          timserver 
 +whois           43/tcp          nicname 
 +tacacs          49/tcp                          # Login Host Protocol (TACACS) 
 +tacacs          49/udp 
 +domain          53/tcp                          # Domain Name Server 
 +domain          53/udp 
 +bootps          67/udp 
 +bootpc          68/udp 
 +tftp            69/udp 
 +gopher          70/tcp                          # Internet Gopher 
 +finger          79/tcp 
 +http            80/tcp          www             # WorldWideWeb HTTP 
 +kerberos        88/tcp          kerberos5 krb5 kerberos-sec     # Kerberos v5 
 +kerberos        88/udp          kerberos5 krb5 kerberos-sec     # Kerberos v5 
 +iso-tsap        102/tcp         tsap            # part of ISODE 
 +--More-- 
 +[q]                   
 </code> </code>
  
Ligne 1709: Ligne 1647:
  
 <code> <code>
-[root@centos8 ~]# sed '/^#/d' /etc/services | more+root@debian11:/tmp# sed '/^#/d' /etc/services | more
  
 tcpmux          1/tcp                           # TCP port service multiplexer tcpmux          1/tcp                           # TCP port service multiplexer
-tcpmux          1/udp                           # TCP port service multiplexer 
-rje             5/tcp                           # Remote Job Entry 
-rje             5/udp                           # Remote Job Entry 
 echo            7/tcp echo            7/tcp
 echo            7/udp echo            7/udp
Ligne 1720: Ligne 1655:
 discard         9/udp           sink null discard         9/udp           sink null
 systat          11/tcp          users systat          11/tcp          users
-systat          11/udp          users 
 daytime         13/tcp daytime         13/tcp
 daytime         13/udp daytime         13/udp
 +netstat         15/tcp
 qotd            17/tcp          quote qotd            17/tcp          quote
-qotd            17/udp          quote 
-msp             18/tcp                          # message send protocol 
-msp             18/udp                          # message send protocol 
 chargen         19/tcp          ttytst source chargen         19/tcp          ttytst source
 chargen         19/udp          ttytst source chargen         19/udp          ttytst source
 ftp-data        20/tcp ftp-data        20/tcp
-ftp-data        20/udp 
 ftp             21/tcp ftp             21/tcp
-ftp             21/udp          fsp fspd +fsp             21/udp          fspd 
---Plus--                        +ssh             22/tcp                          # SSH Remote Login Protocol 
 +telnet          23/tcp 
 +smtp            25/tcp          mail 
 +time            37/tcp          timserver 
 +time            37/udp          timserver 
 +whois           43/tcp          nicname 
 +tacacs          49/tcp                          # Login Host Protocol (TACACS) 
 +tacacs          49/udp 
 +domain          53/tcp                          # Domain Name Server 
 +domain          53/udp 
 +bootps          67/udp 
 +bootpc          68/udp 
 +tftp            69/udp 
 +gopher          70/tcp                          # Internet Gopher 
 +finger          79/tcp 
 +http            80/tcp          www             # WorldWideWeb HTTP 
 +--More-- 
 +[q]                     
 </code> </code>
  
-<WRAP center round important 60%>+<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 /.
 </WRAP> </WRAP>
Ligne 1743: Ligne 1691:
  
 <code> <code>
-[root@centos8 ~]# sed '1,2p' /etc/passwd+root@debian11:/tmp# sed '1,2p' /etc/passwd
 root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
 root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
-bin:x:1:1:bin:/bin:/sbin/nologin +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 
-bin:x:1:1:bin:/bin:/sbin/nologin +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 
-daemon:x:2:2:daemon:/sbin:/sbin/nologin +bin:x:2:2:bin:/bin:/usr/sbin/nologin 
-adm:x:3:4:adm:/var/adm:/sbin/nologin +sys:x:3:3:sys:/dev:/usr/sbin/nologin 
-lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin +sync:x:4:65534:sync:/bin:/bin/sync 
-...+games:x:5:60:games:/usr/games:/usr/sbin/nologin 
 +man:x:6:12:man:/var/cache/man:/usr/sbin/nologin 
 +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin 
 +mail:x:8:8:mail:/var/mail:/usr/sbin/nologin 
 +news:x:9:9:news:/var/spool/news:/usr/sbin/nologin 
 +uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin 
 +proxy:x:13:13:proxy:/bin:/usr/sbin/nologin 
 +www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin 
 +backup:x:34:34:backup:/var/backups:/usr/sbin/nologin 
 +list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin 
 +irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin 
 +gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin 
 +nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin 
 +_apt:x:100:65534::/nonexistent:/usr/sbin/nologin 
 +systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin 
 +systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin 
 +messagebus:x:103:109::/nonexistent:/usr/sbin/nologin 
 +systemd-timesync:x:104:110:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin 
 +usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin 
 +rtkit:x:106:113:RealtimeKit,,,:/proc:/usr/sbin/nologin 
 +dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin 
 +avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/sbin/nologin 
 +speech-dispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false 
 +pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin 
 +saned:x:111:119::/var/lib/saned:/usr/sbin/nologin 
 +colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin 
 +lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false 
 +trainee:x:1000:1000:trainee,,,:/home/trainee:/bin/bash 
 +systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin 
 +sshd:x:114:65534::/run/sshd:/usr/sbin/nologin
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez que sed affiche également tout le contenu du fichier. Ceci implique que les lignes 1 et 2 s'affichent deux fois. **Important** : Notez que sed affiche également tout le contenu du fichier. Ceci implique que les lignes 1 et 2 s'affichent deux fois.
 </WRAP> </WRAP>
Ligne 1761: Ligne 1738:
  
 <code> <code>
-[root@centos8 ~]# sed -n '1,2p' /etc/passwd+root@debian11:/tmp# sed -n '1,2p' /etc/passwd
 root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
-bin:x:1:1:bin:/bin:/sbin/nologin+daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
 </code> </code>
  
Ligne 1769: Ligne 1746:
  
 <code> <code>
-[root@centos8 ~]# sed -n '/^#/!w /tmp/sedtest' /etc/services +root@debian11:/tmp# sed -n '/^#/!w /tmp/sedtest' /etc/services 
-[root@centos8 ~]# more /tmp/sedtest+root@debian11:/tmp# more /tmp/sedtest
  
 tcpmux          1/tcp                           # TCP port service multiplexer tcpmux          1/tcp                           # TCP port service multiplexer
-tcpmux          1/udp                           # TCP port service multiplexer 
-rje             5/tcp                           # Remote Job Entry 
-rje             5/udp                           # Remote Job Entry 
 echo            7/tcp echo            7/tcp
 echo            7/udp echo            7/udp
Ligne 1781: Ligne 1755:
 discard         9/udp           sink null discard         9/udp           sink null
 systat          11/tcp          users systat          11/tcp          users
-systat          11/udp          users 
 daytime         13/tcp daytime         13/tcp
 daytime         13/udp daytime         13/udp
 +netstat         15/tcp
 qotd            17/tcp          quote qotd            17/tcp          quote
-qotd            17/udp          quote 
-msp             18/tcp                          # message send protocol 
-msp             18/udp                          # message send protocol 
 chargen         19/tcp          ttytst source chargen         19/tcp          ttytst source
 chargen         19/udp          ttytst source chargen         19/udp          ttytst source
 ftp-data        20/tcp ftp-data        20/tcp
-ftp-data        20/udp 
 ftp             21/tcp ftp             21/tcp
-ftp             21/udp          fsp fspd +fsp             21/udp          fspd 
---Plus--(0%)+ssh             22/tcp                          # SSH Remote Login Protocol 
 +telnet          23/tcp 
 +smtp            25/tcp          mail 
 +time            37/tcp          timserver 
 +time            37/udp          timserver 
 +whois           43/tcp          nicname 
 +tacacs          49/tcp                          # Login Host Protocol (TACACS) 
 +tacacs          49/udp 
 +domain          53/tcp                          # Domain Name Server 
 +domain          53/udp 
 +bootps          67/udp 
 +bootpc          68/udp 
 +tftp            69/udp 
 +gopher          70/tcp                          # Internet Gopher 
 +finger          79/tcp 
 +http            80/tcp          www             # WorldWideWeb HTTP 
 +--More--(6%) 
 +[q]
 </code> </code>
  
Ligne 1800: Ligne 1787:
  
 <code> <code>
-[root@centos8 ~]# echo "user1,user2,user3" > /tmp/sedtest1 +root@debian11:/tmp# echo "user1,user2,user3" > /tmp/sedtest1 
-[root@centos8 ~]# cat /tmp/sedtest1 | sed 's/,/ /g'+root@debian11:/tmp# cat /tmp/sedtest1 | sed 's/,/ /g'
 user1 user2 user3 user1 user2 user3
 </code> </code>
  
-<WRAP center round important 60%>+<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, chaîne ou ERb)/chaîne de remplacement/g. Le caractère g force le remplacement de toutes les occurrences. Sans elle, uniquement la première occurrence serait remplacée. Dans le cas de l'exemple, on remplace donc les virgules par des espaces. **Important** : Notez que dans cet exemple, la commande s est suivi par un argument qui prend la forme /ce qui est à remplacer (caractère, chaîne ou ERb)/chaîne de remplacement/g. Le caractère g force le remplacement de toutes les occurrences. Sans elle, uniquement la première occurrence serait remplacée. Dans le cas de l'exemple, on remplace donc les virgules par des espaces.
 </WRAP> </WRAP>
Ligne 1817: Ligne 1804:
 </file> </file>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Le couple critère {action} s'appelle une clause. **Important** : Le couple critère {action} s'appelle une clause.
 </WRAP> </WRAP>
Ligne 1840: Ligne 1827:
  
 <code> <code>
-[root@centos8 tmp]# ls -l | awk '{print $8 $3 $4}'+root@debian11:/tmp# ls -l | awk '{print $8 $3 $4}'
  
-05:23rootroot +14:13rootroot 
-05:21rootroot +14:12rootroot 
-05:28rootroot +16:05rootroot 
-05:29rootroot +14:21rootroot 
-12:05rootroot+14:22rootroot 
 +09:31traineetrainee 
 +09:31rootroot 
 +14:37rootroot 
 +14:37rootroot 
 +14:37rootroot 
 +09:31rootroot
 </code> </code>
  
Ligne 1854: Ligne 1847:
  
 <code> <code>
-[root@centos8 tmp]# ls -l | awk '{print $8 " " $3 " " $4}'+root@debian11:/tmp# ls -l | awk '{print $8 " " $3 " " $4}'
      
-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
 </code> </code>
  
Ligne 1956: Ligne 1955:
  
 <code> <code>
-[root@centos8 tmp]# cat > scriptawk+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:
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Dans l'exemple ci-dessus, la ligne [^D] indique que vous devez appuyer simultanément sur les touches <key>CTRL</key> et <key>D</key>. **Important** : Dans l'exemple ci-dessus, la ligne [^D] indique que vous devez appuyer simultanément sur les touches <key>CTRL</key> et <key>D</key>.
 </WRAP> </WRAP>
Ligne 1972: Ligne 1971:
  
 <code> <code>
-[root@centos8 tmp]# awk -f scriptawk /etc/mtab+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,nosuid,nodev,noexec,relatime 0 0+sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
-devtmpfs /dev devtmpfs rw,seclabel,nosuid,size=1897604k,nr_inodes=474401,mode=755 0 0+udev /dev devtmpfs rw,nosuid,relatime,size=1989872k,nr_inodes=497468,mode=755 0 0 
 +devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 
 +tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=402560k,mode=755 0 0 
 +/dev/sda1 / ext4 rw,relatime,errors=remount-ro 0 0
 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
-tmpfs /dev/shm tmpfs rw,seclabel,nosuid,nodev 0 0 +tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0 
-devpts /dev/pts devpts rw,seclabel,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 +tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0 
-tmpfs /run tmpfs rw,seclabel,nosuid,nodev,mode=755 0 0 +cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0 
-tmpfs /sys/fs/cgroup tmpfs ro,seclabel,nosuid,nodev,noexec,mode=755 0 0 +pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0 
-cgroup /sys/fs/cgroup/systemd cgroup rw,seclabel,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0 +none /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0 
-pstore /sys/fs/pstore pstore rw,seclabel,nosuid,nodev,noexec,relatime 0 0 +systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=10999 0 0 
-bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0 +tracefs /sys/kernel/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0 
-cgroup /sys/fs/cgroup/hugetlb cgroup rw,seclabel,nosuid,nodev,noexec,relatime,hugetlb 0 0 +mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0 
-cgroup /sys/fs/cgroup/devices cgroup rw,seclabel,nosuid,nodev,noexec,relatime,devices 0 0 +debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0 
-cgroup /sys/fs/cgroup/cpuset cgroup rw,seclabel,nosuid,nodev,noexec,relatime,cpuset +hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0 
-cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,seclabel,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0 +configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0 
-cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,seclabel,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0 +fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0 
-cgroup /sys/fs/cgroup/rdma cgroup rw,seclabel,nosuid,nodev,noexec,relatime,rdma 0 0 +tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=402556k,nr_inodes=100639,mode=700,uid=1000,gid=1000 0 0 
-cgroup /sys/fs/cgroup/freezer cgroup rw,seclabel,nosuid,nodev,noexec,relatime,freezer 0 0 +binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0 
-cgroup /sys/fs/cgroup/perf_event cgroup rw,seclabel,nosuid,nodev,noexec,relatime,perf_event 0 0 +tracefs /sys/kernel/debug/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0 
-cgroup /sys/fs/cgroup/pids cgroup rw,seclabel,nosuid,nodev,noexec,relatime,pids 0 0 +tmpfs /run/user/113 tmpfs rw,nosuid,nodev,relatime,size=402556k,nr_inodes=100639,mode=700,uid=113,gid=121 0 0
-cgroup /sys/fs/cgroup/blkio cgroup rw,seclabel,nosuid,nodev,noexec,relatime,blkio 0 0 +
-cgroup /sys/fs/cgroup/memory cgroup rw,seclabel,nosuid,nodev,noexec,relatime,memory 0 0 +
-none /sys/kernel/tracing tracefs rw,seclabel,relatime 0 0 +
-configfs /sys/kernel/config configfs rw,relatime 0 0 +
-/dev/sda3 / xfs rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota 0 0 +
-selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0 +
-systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=36,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1976 0 0 +
-debugfs /sys/kernel/debug debugfs rw,seclabel,relatime 0 0 +
-hugetlbfs /dev/hugepages hugetlbfs rw,seclabel,relatime,pagesize=2M 0 0 +
-mqueue /dev/mqueue mqueue rw,seclabel,relatime 0 0 +
-/dev/sda1 /boot ext4 rw,seclabel,relatime 0 0 +
-sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0 +
-tmpfs /run/user/1000 tmpfs rw,seclabel,nosuid,nodev,relatime,size=382740k,mode=700,uid=1000,gid=1000 0 0 +
-binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0 +
-tracefs /sys/kernel/debug/tracing tracefs rw,seclabel,relatime 0 0+
 ===================================== =====================================
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez l'utilisation de l'option -f qui applique le script awk au fichier donné en argument. **Important** : Notez l'utilisation de l'option -f qui applique le script awk au fichier donné en argument.
 </WRAP> </WRAP>
Ligne 2133: Ligne 2120:
 </file> </file>
  
-===Options de la commande=== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **awk** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **awk** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 2144: Ligne 2129:
  
 <code> <code>
-[root@centos8 tmp]# vi sales.txt +root@debian11:/tmp# vi sales.txt 
-[root@centos8 tmp]# cat sales.txt+root@debian11:/tmp# cat sales.txt
 # Annual sales by French department # Annual sales by French department
 # 83 # 83
Ligne 2171: Ligne 2156:
  
 <code> <code>
-[root@centos8 tmp]# vi sales.awk +root@debian11:/tmp# vi sales.awk 
-[root@centos8 tmp]# cat sales.awk +root@debian11:/tmp# cat sales.awk
 # BEGIN # BEGIN
 BEGIN { BEGIN {
Ligne 2179: Ligne 2164:
 # TABLE # TABLE
 $1 !~ /^#/ && $1 !~ /^$/ { $1 !~ /^#/ && $1 !~ /^$/ {
- sales[$1]+=$2+        sales[$1]+=$2
 } }
 # END # END
 END { END {
- for (pc in sales) +        for (pc in sales) 
- printf("PC Type :  %s \t Sales (06+13+83) : %10d\n",pc,sales[pc]);+        printf("PC Type :  %s \t Sales (06+13+83) : %10d\n",pc,sales[pc]);
 } }
 </code> </code>
Ligne 2222: Ligne 2207:
  
 <code> <code>
-[root@centos8 tmp]# awk -f /tmp/sales.awk /tmp/sales.txt +root@debian11:/tmp# awk -f /tmp/sales.awk /tmp/sales.txt 
-PC Type :  Portables  Sales (06+13+83) :        175 +PC Type :  Servers       Sales (06+13+83) :         41 
-PC Type :  Ipads  Sales (06+13+83) :         76 +PC Type :  Portables     Sales (06+13+83) :        175 
-PC Type :  Desktops   Sales (06+13+83) :        329 +PC Type :  Desktops      Sales (06+13+83) :        329 
-PC Type :  Servers  Sales (06+13+83) :         41+PC Type :  Ipads         Sales (06+13+83) :         76
 </code> </code>
  
Ligne 2238: Ligne 2223:
  
 <code> <code>
-[root@centos8 tmp]# vi expand +root@debian11:/tmp# vi expand 
-[root@centos8 tmp]# cat expand +root@debian11:/tmp# cat expand 
-un deux trois quatre cinq +un      deux    trois   quatre  cinq 
-un deux trois quatre cinq +un      deux    trois   quatre  cinq 
-un deux trois quatre cinq +un      deux    trois   quatre  cinq 
-un deux trois quatre cinq +un      deux    trois   quatre  cinq 
-un deux trois quatre cinq +un      deux    trois   quatre  cinq 
-un deux trois quatre cinq +un      deux    trois   quatre  cinq 
-un deux trois quatre cinq +un      deux    trois   quatre  cinq 
-un deux trois quatre cinq +un      deux    trois   quatre  cinq 
-un deux trois quatre cinq +un      deux    trois   quatre  cinq 
-un deux trois quatre cinq+un      deux    trois   quatre  cinq
 </code>> </code>>
  
Ligne 2255: Ligne 2240:
  
 <code> <code>
-[root@centos8 tmp]# cat -vet expand+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:
 </code> </code>
  
-<WRAP center round important 60%>+<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 $. 
 </WRAP> </WRAP>
Ligne 2275: Ligne 2260:
  
 <code> <code>
-[root@centos8 ~]# expand expand > expand1+root@debian11:/tmp# expand expand > expand1
 </code> </code>
  
Ligne 2281: Ligne 2266:
  
 <code> <code>
-[root@centos8 ~]# cat -vet expand1+root@debian11:/tmp# cat -vet expand1
 un      deux    trois   quatre  cinq$ un      deux    trois   quatre  cinq$
 un      deux    trois   quatre  cinq$ un      deux    trois   quatre  cinq$
Ligne 2294: Ligne 2279:
 </code> </code>
  
-<WRAP center round important 60%>+<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. 
 </WRAP> </WRAP>
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'option **--help** de la commande **expand** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **expand** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 2311: Ligne 2296:
  
 <code> <code>
-[root@centos8 ~]# cat -vet expand1+root@debian11:/tmp# cat -vet expand1
 un      deux    trois   quatre  cinq$ un      deux    trois   quatre  cinq$
 un      deux    trois   quatre  cinq$ un      deux    trois   quatre  cinq$
Ligne 2323: Ligne 2308:
 un      deux    trois   quatre  cinq$ un      deux    trois   quatre  cinq$
  
-[root@centos8 ~]# unexpand -a expand1 > expand2+root@debian11:/tmp# unexpand -a expand1 > expand2
  
-[root@centos8 ~]# cat -vet expand2+root@debian11:/tmp# cat -vet expand2
 un^Ideux^Itrois^Iquatre^Icinq$ un^Ideux^Itrois^Iquatre^Icinq$
 un^Ideux^Itrois^Iquatre^Icinq$ un^Ideux^Itrois^Iquatre^Icinq$
Ligne 2338: Ligne 2323:
 </code> </code>
  
-<WRAP center round important 60%>+<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. 
 </WRAP> </WRAP>
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **unexpand** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **unexpand** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 2357: Ligne 2340:
  
 <code> <code>
-[root@centos8 tmp]# cut -c1-7 /etc/passwd+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:
 +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:
 </code> </code>
  
Ligne 2399: Ligne 2381:
  
 <code> <code>
-[root@centos8 tmp]# cut -c1-5,10-15,30- /etc/passwd+root@debian11:/tmp# cut -c1-5,10-15,30- /etc/passwd
 root:0:rootsh root:0:rootsh
-bin:x:bin:/gin +daemo1:1:da:/usr/sbin/nologin 
-daemo2:2:dain/nologin +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:/usr/sbin/nologin 
-shutdx:6:0::/sbin/shutdown +man:x2:man::/usr/sbin/nologin 
-halt:0:haltalt +lp:x:lp:/vasr/sbin/nologin 
-mail:12:maiail:/sbin/nologin +mail:8:mailr/sbin/nologin 
-operax:11:0t:/sbin/nologin +news:9:newsws:/usr/sbin/nologin 
-games2:100:es:/sbin/nologin +uucp::10:uuuucp:/usr/sbin/nologin 
-ftp:x50:FTP:/sbin/nologin +proxy3:13:p/sbin/nologin 
-nobod65534:verflow User:/:/sbin/nologin +www-dx:33:3r/www:/usr/sbin/nologin 
-dbus::81:Syus:/:/sbin/nologin +backu34:34:ckups:/usr/sbin/nologin 
-systeoredumstemd Core Dumper:/:/sbin/nologin +list::38:Maager:/var/list:/usr/sbin/nologin 
-systeesolvetemd Resolver:/:/sbin/nologin +irc:x39:ircsr/sbin/nologin 
-tss:x59:Acche trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin +gnats1:41:Gting System (admin):/var/lib/gnats:/usr/sbin/nologin 
-polki:998:9lkitd:/:/sbin/nologin +nobod65534:nonexistent:/usr/sbin/nologin 
-unbou:997:9 resolver:/etc/unbound:/sbin/nologin +_apt:0:6553t:/usr/sbin/nologin 
-libstemgmt:on account for libstoragemgmt:/var/run/lsm:/sbin/nologin +systeetworktemd Network Management,,,:/run/systemd:/usr/sbin/nologin 
-cockps:x:99 cockpit-ws:/nonexisting:/sbin/nologin +systeesolvetemd Resolver,,,:/run/systemd:/usr/sbin/nologin 
-sssd:4:990:/:/sbin/nologin +messas:x:10stent:/usr/sbin/nologin 
-setroshoot:r/lib/setroubleshoot:/sbin/nologin +systeimesynstemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin 
-sshd::74:Prted SSH:/var/empty/sshd:/sbin/nologin +usbmu105:46,,,:/var/lib/usbmux:/usr/sbin/nologin 
-chron992:98rony:/sbin/nologin +rtkit06:113,:/proc:/usr/sbin/nologin 
-tcpdu:72:72gin +dnsma:107:6,:/var/lib/misc:/usr/sbin/nologin 
-train:1000:home/trainee:/bin/bash +avahi08:114emon,,,:/run/avahi-daemon:/usr/sbin/nologin 
-cockpsinstaUser for cockpit-ws instances:/nonexisting:/sbin/nologin +speecspatcheech Dispatcher,,,:/run/speech-dispatcher:/bin/false 
-rngd:0:986:Generator Daemon:/var/lib/rngd:/sbin/nologin +pulse10:116emon,,,:/run/pulse:/usr/sbin/nologin 
-glust:989:9aemons:/run/gluster:/sbin/nologin +saned11:119ed:/usr/sbin/nologin 
-qemu:7:107:bin/nologin +color112:12r management daemon,,,:/var/lib/colord:/usr/sbin/nologin 
-rpc:x32:Rpcar/lib/rpcbind:/sbin/nologin +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:/var/lib/dnsmasq:/sbin/nologi+
 </code> </code>
  
Ligne 2441: Ligne 2422:
  
 <code> <code>
-[root@centos8 tmp]# cut -d: -f2,4,6 /etc/passwd+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:65534:/bin 
 +x:60:/usr/games 
 +x:12:/var/cache/man
 x:7:/var/spool/lpd x:7:/var/spool/lpd
-x:0:/sbin +x:8:/var/mail 
-x:0:/sbin +x:9:/var/spool/news 
-x:0:/sbin +x:10:/var/spool/uucp 
-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/avahi-daemon 
-x:988:/var/lib/chrony +x:29:/run/speech-dispatcher 
-x:72:/+x:116:/run/pulse 
 +x:119:/var/lib/saned 
 +x:120:/var/lib/colord 
 +x:121:/var/lib/lightdm
 x:1000:/home/trainee x:1000:/home/trainee
-x:987:/nonexisting +x:999:/ 
-x:986:/var/lib/rngd +x:65534:/run/sshd
-x:985:/run/gluster +
-x:107:/ +
-x:32:/var/lib/rpcbind +
-x:29:/var/lib/nfs +
-x:76:/run/saslauthd +
-x:75:/ +
-x:983:/var/lib/dnsmasq+
 </code> </code>
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **cut** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **cut** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 2491: Ligne 2469:
  
 <code> <code>
-[root@centos8 tmp]# cut -d: -f4 /etc/passwd | sort -n | uniq+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
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez l'utilisation de la commande uniq qui permet de supprimer les doublons dans la sortie triée.  **Important** : Notez l'utilisation de la commande uniq qui permet de supprimer les doublons dans la sortie triée. 
 </WRAP> </WRAP>
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **uniq** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **uniq** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 2541: Ligne 2516:
  
 <code> <code>
-[root@centos8 tmp]# cat /etc/passwd | tr "[a-z]" "[A-Z]"+root@debian11:/tmp# cat /etc/passwd | tr "[a-z]" "[A-Z]"
 ROOT:X:0:0:ROOT:/ROOT:/BIN/BASH ROOT:X:0:0:ROOT:/ROOT:/BIN/BASH
-BIN:X:1:1:BIN:/BIN:/SBIN/NOLOGIN +DAEMON:X:1:1:DAEMON:/USR/SBIN:/USR/SBIN/NOLOGIN 
-DAEMON:X:2:2:DAEMON:/SBIN:/SBIN/NOLOGIN +BIN:X:2:2:BIN:/BIN:/USR/SBIN/NOLOGIN 
-ADM:X:3:4:ADM:/VAR/ADM:/SBIN/NOLOGIN +SYS:X:3:3:SYS:/DEV:/USR/SBIN/NOLOGIN 
-LP:X:4:7:LP:/VAR/SPOOL/LPD:/SBIN/NOLOGIN +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/NOLOGIN 
-SHUTDOWN:X:6:0:SHUTDOWN:/SBIN:/SBIN/SHUTDOWN +MAN:X:6:12:MAN:/VAR/CACHE/MAN:/USR/SBIN/NOLOGIN 
-HALT:X:7:0:HALT:/SBIN:/SBIN/HALT +LP:X:7:7:LP:/VAR/SPOOL/LPD:/USR/SBIN/NOLOGIN 
-MAIL:X:8:12:MAIL:/VAR/SPOOL/MAIL:/SBIN/NOLOGIN +MAIL:X:8:8:MAIL:/VAR/MAIL:/USR/SBIN/NOLOGIN 
-OPERATOR:X:11:0:OPERATOR:/ROOT:/SBIN/NOLOGIN +NEWS:X:9:9:NEWS:/VAR/SPOOL/NEWS:/USR/SBIN/NOLOGIN 
-GAMES:X:12:100:GAMES:/USR/GAMES:/SBIN/NOLOGIN +UUCP:X:10:10:UUCP:/VAR/SPOOL/UUCP:/USR/SBIN/NOLOGIN 
-FTP:X:14:50:FTP USER:/VAR/FTP:/SBIN/NOLOGIN +PROXY:X:13:13:PROXY:/BIN:/USR/SBIN/NOLOGIN 
-NOBODY:X:65534:65534:KERNEL OVERFLOW USER:/:/SBIN/NOLOGIN +WWW-DATA:X:33:33:WWW-DATA:/VAR/WWW:/USR/SBIN/NOLOGIN 
-DBUS:X:81:81:SYSTEM MESSAGE BUS:/:/SBIN/NOLOGIN +BACKUP:X:34:34:BACKUP:/VAR/BACKUPS:/USR/SBIN/NOLOGIN 
-SYSTEMD-COREDUMP:X:999:997:SYSTEMD CORE DUMPER:/:/SBIN/NOLOGIN +LIST:X:38:38:MAILING LIST MANAGER:/VAR/LIST:/USR/SBIN/NOLOGIN 
-SYSTEMD-RESOLVE:X:193:193:SYSTEMD RESOLVER:/:/SBIN/NOLOGIN +IRC:X:39:39:IRCD:/RUN/IRCD:/USR/SBIN/NOLOGIN 
-TSS:X:59:59:ACCOUNT USED BY THE TROUSERS PACKAGE TO SANDBOX THE TCSD DAEMON:/DEV/NULL:/SBIN/NOLOGIN +GNATS:X:41:41:GNATS BUG-REPORTING SYSTEM (ADMIN):/VAR/LIB/GNATS:/USR/SBIN/NOLOGIN 
-POLKITD:X:998:996:USER FOR POLKITD:/:/SBIN/NOLOGIN +NOBODY:X:65534:65534:NOBODY:/NONEXISTENT:/USR/SBIN/NOLOGIN 
-UNBOUND:X:997:994:UNBOUND DNS RESOLVER:/ETC/UNBOUND:/SBIN/NOLOGIN +_APT:X:100:65534::/NONEXISTENT:/USR/SBIN/NOLOGIN 
-LIBSTORAGEMGMT:X:996:993:DAEMON ACCOUNT FOR LIBSTORAGEMGMT:/VAR/RUN/LSM:/SBIN/NOLOGIN +SYSTEMD-NETWORK:X:101:102:SYSTEMD NETWORK MANAGEMENT,,,:/RUN/SYSTEMD:/USR/SBIN/NOLOGIN 
-COCKPIT-WS:X:995:991:USER FOR COCKPIT-WS:/NONEXISTING:/SBIN/NOLOGIN +SYSTEMD-RESOLVE:X:102:103:SYSTEMD RESOLVER,,,:/RUN/SYSTEMD:/USR/SBIN/NOLOGIN 
-SSSD:X:994:990:USER FOR SSSD:/:/SBIN/NOLOGIN +MESSAGEBUS:X:103:109::/NONEXISTENT:/USR/SBIN/NOLOGIN 
-SETROUBLESHOOT:X:993:989::/VAR/LIB/SETROUBLESHOOT:/SBIN/NOLOGIN +SYSTEMD-TIMESYNC:X:104:110:SYSTEMD TIME SYNCHRONIZATION,,,:/RUN/SYSTEMD:/USR/SBIN/NOLOGIN 
-SSHD:X:74:74:PRIVILEGE-SEPARATED SSH:/VAR/EMPTY/SSHD:/SBIN/NOLOGIN +USBMUX:X:105:46:USBMUX DAEMON,,,:/VAR/LIB/USBMUX:/USR/SBIN/NOLOGIN 
-CHRONY:X:992:988::/VAR/LIB/CHRONY:/SBIN/NOLOGIN +RTKIT:X:106:113:REALTIMEKIT,,,:/PROC:/USR/SBIN/NOLOGIN 
-TCPDUMP:X:72:72::/:/SBIN/NOLOGIN +DNSMASQ:X:107:65534:DNSMASQ,,,:/VAR/LIB/MISC:/USR/SBIN/NOLOGIN 
-TRAINEE:X:1000:1000:TRAINEE:/HOME/TRAINEE:/BIN/BASH +AVAHI:X:108:114:AVAHI MDNS DAEMON,,,:/RUN/AVAHI-DAEMON:/USR/SBIN/NOLOGIN 
-COCKPIT-WSINSTANCE:X:991:987:USER FOR COCKPIT-WS INSTANCES:/NONEXISTING:/SBIN/NOLOGIN +SPEECH-DISPATCHER:X:109:29:SPEECH DISPATCHER,,,:/RUN/SPEECH-DISPATCHER:/BIN/FALSE 
-RNGD:X:990:986:RANDOM NUMBER GENERATOR DAEMON:/VAR/LIB/RNGD:/SBIN/NOLOGIN +PULSE:X:110:116:PULSEAUDIO DAEMON,,,:/RUN/PULSE:/USR/SBIN/NOLOGIN 
-GLUSTER:X:989:985:GLUSTERFS DAEMONS:/RUN/GLUSTER:/SBIN/NOLOGIN +SANED:X:111:119::/VAR/LIB/SANED:/USR/SBIN/NOLOGIN 
-QEMU:X:107:107:QEMU USER:/:/SBIN/NOLOGIN +COLORD:X:112:120:COLORD COLOUR MANAGEMENT DAEMON,,,:/VAR/LIB/COLORD:/USR/SBIN/NOLOGIN 
-RPC:X:32:32:RPCBIND DAEMON:/VAR/LIB/RPCBIND:/SBIN/NOLOGIN +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/SBIN/NOLOGIN 
-RADVD:X:75:75:RADVD USER:/:/SBIN/NOLOGIN +SSHD:X:114:65534::/RUN/SSHD:/USR/SBIN/NOLOGIN
-DNSMASQ:X:983:983:DNSMASQ DHCP AND DNS SERVER:/VAR/LIB/DNSMASQ:/SBIN/NOLOGIN+
 </code> </code>
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **tr** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **tr** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 2591: Ligne 2563:
  
 <code> <code>
-[root@centos8 tmp]# paste -d: /etc/passwd /etc/shadow +root@debian11:/tmp# paste -d: /etc/passwd /etc/shadow 
-root:x:0:0:root:/root:/bin/bash:root:$6$9Sa1IumuSlJc8EBg$8jGU/4xGCXy64QuBSMyKOC6/FWs41rdY5tzF5/7yHG6FRS2Y2eOJIcst1JbcvNoqMPDU4lpZ6THW97jwGuQNf1::0:99999:7::: +root:x:0:0:root:/root:/bin/bash:root:$y$j9T$3oULwcP4KCW0crXb9zLB90$Tqr6eSITrKaEnKecir1vRGXpa1OdRRi3/Q.gLwLPph/:19107:0:99999:7::: 
-bin:x:1:1:bin:/bin:/sbin/nologin:bin:*:18264:0:99999:7::: +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin:daemon:*:19107:0:99999:7::: 
-daemon:x:2:2:daemon:/sbin:/sbin/nologin:daemon:*:18264:0:99999:7::: +bin:x:2:2:bin:/bin:/usr/sbin/nologin:bin:*:19107:0:99999:7::: 
-adm:x:3:4:adm:/var/adm:/sbin/nologin:adm:*:18264:0:99999:7::: +sys:x:3:3:sys:/dev:/usr/sbin/nologin:sys:*:19107:0:99999:7::: 
-lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin:lp:*:18264:0:99999:7::: +sync:x:4:65534:sync:/bin:/bin/sync:sync:*:19107:0:99999:7::: 
-sync:x:5:0:sync:/sbin:/bin/sync:sync:*:18264:0:99999:7::: +games:x:5:60:games:/usr/games:/usr/sbin/nologin:games:*:19107:0:99999:7::: 
-shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown:shutdown:*:18264:0:99999:7::: +man:x:6:12:man:/var/cache/man:/usr/sbin/nologin:man:*:19107:0:99999:7::: 
-halt:x:7:0:halt:/sbin:/sbin/halt:halt:*:18264:0:99999:7::: +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin:lp:*:19107:0:99999:7::: 
-mail:x:8:12:mail:/var/spool/mail:/sbin/nologin:mail:*:18264:0:99999:7::: +mail:x:8:8:mail:/var/mail:/usr/sbin/nologin:mail:*:19107:0:99999:7::: 
-operator:x:11:0:operator:/root:/sbin/nologin:operator:*:18264:0:99999:7::: +news:x:9:9:news:/var/spool/news:/usr/sbin/nologin:news:*:19107:0:99999:7::: 
-games:x:12:100:games:/usr/games:/sbin/nologin:games:*:18264:0:99999:7::: +uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin:uucp:*:19107:0:99999:7::: 
-ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin:ftp:*:18264:0:99999:7::: +proxy:x:13:13:proxy:/bin:/usr/sbin/nologin:proxy:*:19107:0:99999:7::: 
-nobody:x:65534:65534:Kernel Overflow User:/:/sbin/nologin:nobody:*:18264:0:99999:7::: +www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin:www-data:*:19107:0:99999:7::: 
-dbus:x:81:81:System message bus:/:/sbin/nologin:dbus:!!:18390:::::: +backup:x:34:34:backup:/var/backups:/usr/sbin/nologin:backup:*:19107:0:99999:7::: 
-systemd-coredump:x:999:997:systemd Core Dumper:/:/sbin/nologin:systemd-coredump:!!:18390:::::: +list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin:list:*:19107:0:99999:7::: 
-systemd-resolve:x:193:193:systemd Resolver:/:/sbin/nologin:systemd-resolve:!!:18390:::::: +irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin:irc:*:19107:0:99999:7::: 
-tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin:tss:!!:18390:::::: +gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin:gnats:*:19107:0:99999:7::: 
-polkitd:x:998:996:User for polkitd:/:/sbin/nologin:polkitd:!!:18390:::::: +nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin:nobody:*:19107:0:99999:7::: 
-unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/sbin/nologin:unbound:!!:18390:::::: +_apt:x:100:65534::/nonexistent:/usr/sbin/nologin:_apt:*:19107:0:99999:7::: 
-libstoragemgmt:x:996:993:daemon account for libstoragemgmt:/var/run/lsm:/sbin/nologin:libstoragemgmt:!!:18390:::::: +systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin:systemd-network:*:19107:0:99999:7::: 
-cockpit-ws:x:995:991:User for cockpit-ws:/nonexisting:/sbin/nologin:cockpit-ws:!!:18390:::::: +systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin:systemd-resolve:*:19107:0:99999:7::: 
-sssd:x:994:990:User for sssd:/:/sbin/nologin:sssd:!!:18390:::::: +messagebus:x:103:109::/nonexistent:/usr/sbin/nologin:messagebus:*:19107:0:99999:7::: 
-setroubleshoot:x:993:989::/var/lib/setroubleshoot:/sbin/nologin:setroubleshoot:!!:18390:::::: +systemd-timesync:x:104:110:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin:systemd-timesync:*:19107:0:99999:7::: 
-sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin:sshd:!!:18390:::::: +usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin:usbmux:*:19107:0:99999:7::: 
-chrony:x:992:988::/var/lib/chrony:/sbin/nologin:chrony:!!:18390:::::: +rtkit:x:106:113:RealtimeKit,,,:/proc:/usr/sbin/nologin:rtkit:*:19107:0:99999:7::: 
-tcpdump:x:72:72::/:/sbin/nologin:tcpdump:!!:18390:::::: +dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin:dnsmasq:*:19107:0:99999:7::: 
-trainee:x:1000:1000:trainee:/home/trainee:/bin/bash:trainee:$6$p4HOAHX7UAzw1nQh$VZL12Lye.mR8v1IP2e4f0PCW8DzHj2MMAaA7r2ZLoTnQN7Ziskce3bo/xTMu1bXZm5GebJjSw7.X5tABVNoJ2/::0:99999:7::: +avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/sbin/nologin:avahi:*:19107:0:99999:7::: 
-cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/sbin/nologin:cockpit-wsinstance:!!:18736:::::: +speech-dispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false:speech-dispatcher:!:19107:0:99999:7::: 
-rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin:rngd:!!:18736:::::: +pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin:pulse:*:19107:0:99999:7::: 
-gluster:x:989:985:GlusterFS daemons:/run/gluster:/sbin/nologin:gluster:!!:18736:::::: +saned:x:111:119::/var/lib/saned:/usr/sbin/nologin:saned:*:19107:0:99999:7::: 
-qemu:x:107:107:qemu user:/:/sbin/nologin:qemu:!!:18736:::::: +colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin:colord:*:19107:0:99999:7::: 
-rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin:rpc:!!:18736:0:99999:7::: +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/sbin/nologin:systemd-coredump:!*:19107:::::: 
-radvd:x:75:75:radvd user:/:/sbin/nologin:radvd:!!:18736:::::: +sshd:x:114:65534::/run/sshd:/usr/sbin/nologin:sshd:*:19107:0:99999:7:::
-dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/sbin/nologin:dnsmasq:!!:18736::::::+
 </code> </code>
  
- +<WRAP center round todo>
-==Options de la commande== +
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **paste** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **paste** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 2644: Ligne 2612:
  
 <code> <code>
-[root@centos8 tmp]# dd if=/dev/zero of=/file bs=1024k count=250+oot@debian11:/tmp# dd if=/dev/zero of=/file bs=1024k count=250
 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 s, 1.GB/s+262144000 bytes (262 MB, 250 MiB) copied, 0.23014 s, 1.GB/s
 </code>  </code> 
  
Ligne 2653: Ligne 2621:
  
 <code> <code>
-[root@centos8 tmp]# split -b 50m /file filepart +root@debian11:/tmp# split -b 50m /file filepart 
-[root@centos8 tmp]# ls -l | grep filepart +root@debian11:/tmp# ls -l | grep filepart 
--rw-r--r--1 root root 52428800 Apr 20 07:14 filepartaa +-rw-r--r-- 1 root    root    52428800 Jun  2 14:41 filepartaa 
--rw-r--r--1 root root 52428800 Apr 20 07:14 filepartab +-rw-r--r-- 1 root    root    52428800 Jun  2 14:41 filepartab 
--rw-r--r--1 root root 52428800 Apr 20 07:14 filepartac +-rw-r--r-- 1 root    root    52428800 Jun  2 14:41 filepartac 
--rw-r--r--1 root root 52428800 Apr 20 07:14 filepartad +-rw-r--r-- 1 root    root    52428800 Jun  2 14:41 filepartad 
--rw-r--r--1 root root 52428800 Apr 20 07:14 filepartae+-rw-r--r-- 1 root    root    52428800 Jun  2 14:41 filepartae
 </code> </code>
  
-<WRAP center round important 60%>+<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, split devise le fichier en morceaux de 1 000 lignes par défaut.  **Important** : Notez que cinq morceaux ont été créés dans le répertoire courant. Si aucune taille n'est spécifiée, split devise le fichier en morceaux de 1 000 lignes par défaut. 
 </WRAP> </WRAP>
Ligne 2669: Ligne 2637:
  
 <code> <code>
-[root@centos8 tmp]# cat fileparta* > newfile +root@debian11:/tmp# cat fileparta* > newfile 
-[root@centos8 tmp]# ls -l | grep newf +root@debian11:/tmp# ls -l | grep newf 
--rw-r--r--1 root root 262144000 Apr 20 07:15 newfile +-rw-r--r-- 1 root    root    262144000 Jun  2 14:42 newfile 
-[root@centos8 tmp]# ls -l / | grep file +root@debian11:/tmp# ls -l / | grep file 
--rw-r--r--  1 root root 262144000 Apr 20 07:14 file+-rw-r--r--   1 root root 262144000 Jun  2 14:41 file
 </code> </code>
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **split** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **split** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 2689: Ligne 2655:
  
 <code> <code>
-[root@centos8 ~]# cp /etc/passwd /root+root@debian11:/tmp# cp /etc/passwd /root 
 +root@debian11:/tmp# cd ~ 
 +root@debian11:~# 
 </code> </code>
  
Ligne 2696: Ligne 2664:
 <file> <file>
 ... ...
-trainee10:x:1000:1000:trainee:/home/trainee:/bin/bash+trainee10:x:1000:1000:trainee,,,:/home/trainee:/bin/bash
 ... ...
 </file> </file>
  
-Supprimez la ligne **tcpdump** dans le fichier /root/passwd et ajoutez en fin de fichier la ligne suivante :+Supprimez la ligne **lp** dans le fichier /root/passwd et ajoutez en fin de fichier la ligne suivante :
  
 <file> <file>
Ligne 2706: Ligne 2674:
 Linux est super! Linux est super!
 </file> </file>
 +
 +Vous obtiendrez :
 +
 +<code>
 +root@debian11:~# vi /root/passwd
 +root@debian11:~# nl /root/passwd
 +      root:x:0:0:root:/root:/bin/bash
 +      daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
 +      bin:x:2:2:bin:/bin:/usr/sbin/nologin
 +      sys:x:3:3:sys:/dev:/usr/sbin/nologin
 +      sync:x:4:65534:sync:/bin:/bin/sync
 +      games:x:5:60:games:/usr/games:/usr/sbin/nologin
 +      man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
 +      mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
 +      news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
 +    10  uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
 +    11  proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
 +    12  www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
 +    13  backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
 +    14  list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
 +    15  irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin
 +    16  gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
 +    17  nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
 +    18  _apt:x:100:65534::/nonexistent:/usr/sbin/nologin
 +    19  systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
 +    20  systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
 +    21  messagebus:x:103:109::/nonexistent:/usr/sbin/nologin
 +    22  systemd-timesync:x:104:110:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin
 +    23  usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin
 +    24  rtkit:x:106:113:RealtimeKit,,,:/proc:/usr/sbin/nologin
 +    25  dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin
 +    26  avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/sbin/nologin
 +    27  speech-dispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false
 +    28  pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin
 +    29  saned:x:111:119::/var/lib/saned:/usr/sbin/nologin
 +    30  colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin
 +    31  lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false
 +    32  trainee10:x:1000:1000:trainee,,,:/home/trainee:/bin/bash
 +    33  systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin
 +    34  sshd:x:114:65534::/run/sshd:/usr/sbin/nologin
 +    35  Linux is great!
 +</code>
  
 Comparez maintenant les deux fichiers : Comparez maintenant les deux fichiers :
  
 <code> <code>
-[root@centos8 tmp]# diff /etc/passwd /root/passwd +root@debian11:~# diff /etc/passwd /root/passwd 
-26,27c26 +8d7 
-tcpdump:x:72:72::/:/sbin/nologin +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin 
-< trainee:x:1000:1000:trainee:/home/trainee:/bin/bash+33c32 
 +< trainee:x:1000:1000:trainee,,,:/home/trainee:/bin/bash
 --- ---
-> trainee10:x:1000:1000:trainee:/home/trainee:/bin/bash +> trainee10:x:1000:1000:trainee,,,:/home/trainee:/bin/bash 
-36a36 +35a35 
-> Linux est super!+> Linux is great!
 </code> </code>
  
 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 **26,27c26** indique qu'il faut changer la ligne 27 dans /etc/passwd afin que celle-ci corresponde à la ligne 26 dans /root/passwd.+Le message 8d7 indique que la ligne 8 a besoin d'être supprimée du fichier /etc/passwd car elle ne se trouve pas dans le fichier /root/passwd.
  
-Le message **36a36** indique qu'à la ligne 36 dans /etc/passwd il faut ajouter la ligne 36 de /root/passwd.+Le message 33c32 indique que la ligne 33 dans /etc/passwd doit être modifiée afin d'être identique à la ligne 32 dans le fichier /root/passwd.
  
-==Options de la commande==+Le message 35a35 indique qu'à la ligne 35 dans /root/passwd doit être ajoutée dans le fichier /etc/passwd après la ligne 35.
  
-<WRAP center round todo 60%>+<WRAP center round todo>
 **A faire** : Utilisez l'option **--help** de la commande **diff** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **diff** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 2737: Ligne 2748:
  
 <code> <code>
-[root@centos8 tmp]# cmp /root/passwd /etc/passwd +root@debian11:~# cmp /root/passwd /etc/passwd 
-/root/passwd /etc/passwd differ: byte 1300, line 26+/root/passwd /etc/passwd differ: byte 286, line 8
 </code> </code>
  
Ligne 2744: Ligne 2755:
  
 <code> <code>
-[root@centos8 tmp]# cmp -l /root/passwd /etc/passwd | more +root@debian11:~# cmp -l /root/passwd /etc/passwd | more 
-cmp: EOF on /root/passwd after byte 1931 +cmp: EOF on /root/passwd after byte 1980 
-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 + 296  72 160 
-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 + 301  72 162 
-1314  60  72 + 303 166 163 
-1316  61  57 + 304 141 160 
-1317  60  72 + 305 162 157 
-1318  60  57 + 306  57 157 
-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 + 311  72 144 
-1324 151 156+ 312  57  72 
 + 313 165  57 
 + 314 163 165 
 + 315 162 163 
 + 316  57 162 
 + 317 163  57 
 + 318 142 163 
 + 319 151 142 
 + 320 156 151 
 + 321  57 156
 --More-- --More--
 +[q]
 </code> </code>
  
 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 /root/passwd et la troisième la valeur octale ASCII du caractère dans le fichier /etc/passwd.  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 /root/passwd et la troisième la valeur octale ASCII du caractère dans le fichier /etc/passwd. 
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **cmp** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **cmp** pour visualiser les options de la commande.
 </WRAP> </WRAP>
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'ancienne version du fichier et la nouvelle version. 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'ancienne version du fichier et la nouvelle version.
  
-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 :
  
 <code> <code>
-[root@centos8 ~]dnf install patch -y+root@debian11:~# which patch 
 +root@debian11:~# 
 +root@debian11:~# apt install patch -y
 </code> </code>
  
Ligne 2793: Ligne 2814:
  
 <code> <code>
-[root@centos8 tmp]# cat /tmp/greptest+root@debian11:~# cat /tmp/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 2808: Ligne 2829:
 £ £
 # End comment # End comment
-[root@centos8 tmp]# cat /tmp/greptest1+ 
 +root@debian11:~# cat /tmp/greptest1
 fenestrOS fenestrOS
 fenestros fenestros
Ligne 2821: Ligne 2843:
  
 <code> <code>
-[root@centos8 tmp]# diff -u greptest greptest1 > greptest.patch+root@debian11:~# cd /tmp 
 +root@debian11:/tmp# diff -u greptest greptest1 > greptest.patch
 </code> </code>
  
Ligne 2827: Ligne 2850:
  
 <code> <code>
-[root@centos8 tmp]# cat greptest.patch +root@debian11:/tmp# cat greptest.patch 
---- greptest 2021-04-20 05:23:52.710188632 -0400 +--- greptest    2022-06-02 14:13:47.823779461 +0200 
-+++ greptest1 2021-04-20 05:21:55.189882834 -0400++++ greptest1   2022-06-02 14:12:30.019484987 +0200
 @@ -1,14 +1,7 @@ @@ -1,14 +1,7 @@
 -# Starting comment -# Starting comment
Ligne 2850: Ligne 2873:
  
 <code> <code>
-[root@centos8 tmp]# patch < greptest.patch+root@debian11:/tmp# patch < greptest.patch
 patching file greptest patching file greptest
 </code> </code>
Ligne 2857: Ligne 2880:
  
 <code> <code>
-[root@centos8 tmp]# cat greptest+root@debian11:/tmp# cat greptest
 fenestrOS fenestrOS
 fenestros fenestros
Ligne 2867: Ligne 2890:
 </code> </code>
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **patch** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **patch** pour visualiser les options de la commande.
 </WRAP> </WRAP>
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 :
 +
 +<code>
 +root@debian11:/tmp# which strings
 +root@debian11:/tmp# apt install binutils -y
 +...
 +root@debian11:/tmp# which strings
 +/usr/bin/strings
 +</code>
  
 Sous Linux et Unix, le format d'un fichier objet est le format **ELF**, (//Executable and Linkable Format//). Ce format est aussi utilisé pour : Sous Linux et Unix, le format d'un fichier objet est le format **ELF**, (//Executable and Linkable Format//). Ce format est aussi utilisé pour :
Ligne 2886: Ligne 2917:
  
 <code> <code>
-[root@centos8 tmp]# strings /usr/bin/passwd | more+root@debian11:/tmp# strings /usr/bin/passwd | more
 /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2
-libuser.so.+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]
 </code> </code>
  
Ligne 2916: Ligne 2957:
  
 <code> <code>
-[root@centos8 tmp]# strings -t d /usr/bin/passwd | more +root@debian11:/tmp# strings -t d /usr/bin/passwd | more 
-    624 /lib64/ld-linux-x86-64.so.2 +    680 /lib64/ld-linux-x86-64.so.2 
-   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]
 </code> </code>
  
Ligne 2953: Ligne 3004:
  
 <code> <code>
-[root@centos8 tmp]# strings -t d -n 15 /usr/bin/passwd | more +root@debian11:/tmp# strings -t d -n 15 /usr/bin/passwd | more 
-    624 /lib64/ld-linux-x86-64.so.2 +    680 /lib64/ld-linux-x86-64.so.2 
-   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 +  41008   -a, --all                     report password status on all accounts 
-   3320 libglib-2.0.so.0 +  41080   -d, --delete                  delete the password for the named account 
-   3379 poptHelpOptions +  41160   -e, --expire                  force expire the password for the named account 
-   3435 poptSetOtherOptionHelp +  41248   -h, --help                    display this help message and exit 
-   3543 libpam_misc.so.0 +  41320   -k, --keep-tokens             change password only if expired 
-   3584 audit_log_user_avc_message +  41392   -i, --inactive INACTIVE       set password inactive after expiration 
-   3611 libselinux.so.1+  41463                                 to INACTIVE 
 +  41512   -l, --lock                    lock the password of the named account 
 +  41584   -n, --mindays MIN_DAYS        set minimum number of days before password 
 +  41659                                 change to MIN_DAYS 
 +  41712   -q, --quiet                   quiet mode 
 +  41760   -r, --repository REPOSITORY   change password in REPOSITORY repository 
 +  41840   -R, --root CHROOT_DIR         directory to chroot into 
 +  41904   -S, --status                  report password status on the named account 
 +  41984   -u, --unlock                  unlock the password of the named account 
 +  42064   -w, --warndays WARN_DAYS      set expiration warning days to WARN_DAYS
 --More-- --More--
 +[q]
 </code> </code>
  
Ligne 2983: Ligne 3044:
  
 <code> <code>
-[root@centos8 tmp]# strings -f /bin/* | grep "(c)"+root@debian11:/tmp# strings -f /bin/* | grep "(c)" | more
 /bin/broadwayd:  * (c) Joel Martin (github@martintribe.org), used with permission /bin/broadwayd:  * (c) Joel Martin (github@martintribe.org), used with permission
-/bin/broadwayd: /** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function() {'use strict';var l=void 0,p=this;function q(c,d){var a=c.split("."),b=p;!(a[0]in b)&&b.execScript&&b.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&d!==l?b[e]=d:b=b[e]?b[e]:b[e]={}};var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function u(c){var d=c.length,a=0,b=Number.POSITIVE_INFINITY,e,f,g,h,k,m,s,n,t;for(n=0;n<d;++n)c[n]>a&&(a=c[n]),c[n]<b&&(b=c[n]);e=1<<a;f=new (r?Uint32Array:Array)(e);g=1;h=0;for(k=2;g<=a;){for(n=0;n<d;++n)if(c[n]===g){m=0;s=h;for(t=0;t<g;++t)m=m<<1|s&1,s>>=1;for(t=m;t<e;t+=k)f[t]=g<<16|n;++h}++g;h<<=1;k<<=1}return[f,a,b]};function v(c,d){this.g=[];this.h=32768;this.c=this.f=this.d=this.k=0;this.input=r?new Uint8Array(c):c;this.l=!1;this.i=w;this.p=!1;if(d||!(d={}))d.index&&(this.d=d.index),d.bufferSize&&(this.h=d.bufferSize),d.bufferType&&(this.i=d.bufferType),d.resize&&(this.p=d.resize);switch(this.i){case x:this.a=32768;this.b=new (r?Uint8Array:Array)(32768+this.h+258);break;case w:this.a=0;this.b=new (r?Uint8Array:Array)(this.h);this.e=this.u;this.m=this.r;this.j=this.s;break;default:throw Error("invalid inflate mode"); +/bin/broadwayd: /** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */(function() {'use strict';var l=void 0, 
-/bin/broadwayd: v.prototype.t=function(){for(;!this.l;){var c=y(this,3);c&1&&(this.l=!0);c>>>=1;switch(c){case 0:var d=this.input,a=this.d,b=this.b,e=this.a,f=l,g=l,h=l,k=b.length,m=l;this.c=this.f=0;f=d[a++];if(f===l)throw Error("invalid uncompressed block header: LEN (first byte)");g=f;f=d[a++];if(f===l)throw Error("invalid uncompressed block header: LEN (second byte)");g|=f<<8;f=d[a++];if(f===l)throw Error("invalid uncompressed block header: NLEN (first byte)");h=f;f=d[a++];if(f===l)throw Error("invalid uncompressed block header: NLEN (second byte)");h|= +p=this;function q(c,d){var a=c.split("."),b=p;!(a[0]in b)&&b.execScript&&b.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length& 
-/bin/broadwayd: function B(c){function d(a,c,b){var d,f,e,g;for(g=0;g<a;)switch(d=S(this,c),d){case 16:for(e=3+y(this,2);e--;)b[g++]=f;break;case 17:for(e=3+y(this,3);e--;)b[g++]=0;f=0;break;case 18:for(e=11+y(this,7);e--;)b[g++]=0;f=0;break;default:f=b[g++]=d}return b}var a=y(c,5)+257,b=y(c,5)+1,e=y(c,4)+4,f=new (r?Uint8Array:Array)(D.length),g,h,k,m;for(m=0;m<e;++m)f[D[m]]=y(c,3);g=u(f);h=new (r?Uint8Array:Array)(a);k=new (r?Uint8Array:Array)(b);c.j(u(d.call(c,a,g,h)),u(d.call(c,b,g,k)))} +&d!==l?b[e]=d:b=b[e]?b[e]:b[e]={}};var r="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;fun 
-/bin/broadwayd: v.prototype.e=function(){var c=new (r?Uint8Array:Array)(this.a-32768),d=this.a-32768,a,b,e=this.b;if(r)c.set(e.subarray(32768,c.length));else{a=0;for(b=c.length;a<b;++a)c[a]=e[a+32768]}this.g.push(c);this.k+=c.length;if(r)e.set(e.subarray(d,d+32768));else for(a=0;32768>a;++a)e[a]=e[d+a];this.a=32768;return e}; +ction u(c){var d=c.length,a=0,b=Number.POSITIVE_INFINITY,e,f,g,h,k,m,s,n,t;for(n=0;n<d;++n)c[n]>a&&(a=c[n]),c[n]<b&&(b=c[n]);e=1<<a;f=new (r?Uin 
-/bin/broadwayd: v.prototype.u=function(c){var d,a=this.input.length/this.d+1|0,b,e,f,g=this.input,h=this.b;c&&("number"===typeof c.o&&(a=c.o),"number"===typeof c.q&&(a+=c.q));2>a?(b=(g.length-this.d)/this.n[2],f=258*(b/2)|0,e=f<h.length?h.length+f:h.length<<1):e=h.length*a;r?(d=new Uint8Array(e),d.set(h)):d=h;return this.b=d}; +t32Array:Array)(e);g=1;h=0;for(k=2;g<=a;){for(n=0;n<d;++n)if(c[n]===g){m=0;s=h;for(t=0;t<g;++t)m=m<<1|s&1,s>>=1;for(t=m;t<e;t+=k)f[t]=g<<16|n;++ 
-/bin/btrace# Copyright (c) 2005 Silicon Graphics, Inc. +h}++g;h<<=1;k<<=1}return[f,a,b]};function v(c,d){this.g=[];this.h=32768;this.c=this.f=this.d=this.k=0;this.input=r?new Uint8Array(c):c;this.l=!1 
-/bin/chcat:         if len(c) > 0 and (c[0] == "+" or c[0] == "-"): +;this.i=w;this.p=!1;if(d||!(d={}))d.index&&(this.d=d.index),d.bufferSize&&(this.h=d.bufferSize),d.bufferType&&(this.i=d.bufferType),d.resize&&(
-/bin/chcat                if len(c) > 0 and c[0] == "+": +his.p=d.resize);switch(this.i){case x:this.a=32768;this.b=new (r?Uint8Array:Array)(32768+this.h+258);break;case w:this.a=0;this.b=new (r?Uint8Ar 
-/bin/chcat:                 if len(c) > 0 and c[0] == "-": +ray:Array)(this.h);this.e=this.u;this.m=this.r;this.j=this.s;break;default:throw Error("invalid inflate mode"); 
-/bin/gprof: @(#) Copyright (c) 1983 Regents of the University of California. +/bin/broadwayd: v.prototype.t=function(){for(;!this.l;){var c=y(this,3);c&1&&(this.l=!0);c>>>=1;switch(c){case 0:var d=this.input,a=this.d,b=thi 
-/bin/lsusb.py: # Copyright (c) 2009 Kurt Garloff <garloff@suse.de> +s.b,e=this.a,f=l,g=l,h=l,k=b.length,m=l;this.c=this.f=0;f=d[a++];if(f===l)throw Error("invalid uncompressed block header: LEN (first byte)");g=f 
-/bin/lsusb.pyCopyright (c) 2013 Kurt Garloff <kurt@garloff.de> +;f=d[a++];if(f===l)throw Error("invalid uncompressed block header: LEN (second byte)");g|=f<<8;f=d[a++];if(f===l)throw Error("invalid uncompress 
-/bin/pinentry: # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +ed block header: NLEN (first byte)");h=f;f=d[a++];if(f===l)throw Error("invalid uncompressed block header: NLEN (second byte)");h|= 
-/bin/pinentry: # Copyright (c) 2009 Fedora Project +/bin/broadwayd: function B(c){function d(a,c,b){var d,f,e,g;for(g=0;g<a;)switch(d=S(this,c),d){case 16:for(e=3+y(this,2);e--;)b[g++]=f;break;cas 
-/bin/pinentry: # Copyright (c) 2014-2015 Red Hat +17:for(e=3+y(this,3);e--;)b[g++]=0;f=0;break;case 18:for(e=11+y(this,7);e--;)b[g++]=0;f=0;break;default:f=b[g++]=d}return b}var a=y(c,5)+257,b 
-/bin/pkgconf: Copyright (c) 201120122013, 2014, 2015, 2016, 2017, 2018 +=y(c,5)+1,e=y(c,4)+4,f=new (r?Uint8Array:Array)(D.length),g,h,k,m;for(m=0;m<e;++m)f[D[m]]=y(c,3);g=u(f);h=new (r?Uint8Array:Array)(a);k=new (r?
-/bin/pkg-config: Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 +int8Array:Array)(b);c.j(u(d.call(c,a,g,h)),u(d.call(c,b,g,k)))} 
-/bin/pod2usage: # Copyright (c) 1996-2000 by Bradford Appleton. All rights reserved+/bin/broadwayd: v.prototype.e=function(){var c=new (r?Uint8Array:Array)(this.a-32768),d=this.a-32768,a,b,e=this.b;if(r)c.set(e.subarray(32768,c. 
-/bin/pod2usage: # Copyright (c) 2001-2016 by Marek Rouchal. +length));else{a=0;for(b=c.length;a<b;++a)c[a]=e[a+32768]}this.g.push(c);this.k+=c.length;if(r)e.set(e.subarray(d,d+32768));else for(a=0;32768>a; 
-/bin/qemu-img: Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers +++a)e[a]=e[d+a];this.a=32768;return e}; 
-/bin/qemu-img: Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers +/bin/broadwayd: v.prototype.u=function(c){var d,a=this.input.length/this.d+1|0,b,e,f,g=this.input,h=this.b;c&&("number"===typeof c.o&&(a=c.o),"
-/bin/qemu-io: Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers +umber"===typeof c.q&&(a+=c.q));2>a?(b=(g.length-this.d)/this.n[2],f=258*(b/2)|0,e=f<h.length?h.length+f:h.length<<1):e=h.length*a;r?(d=new Uint8 
-/bin/qemu-nbd: Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers +Array(e),d.set(h)):d=h;return this.b=d}; 
-/bin/qemu-pr-helper: Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers +/bin/busyboxOriginal code (c) 2018 Gavin DHoward and contributors 
-/bin/rescan-scsi-bus.sh: # (c) 1998--2010 Kurt Garloff <kurt@garloff.de>, GNU GPL v2 or v3 +/bin/corelistCopyright (c) 2002-2007 by D.Haka PodMaster 
-/bin/rescan-scsi-bus.sh: # (c) 2006--2018 Hannes Reinecke, GNU GPL v2 or later +/bin/cpan: Copyright (c) 2001-2015, brian d foy, All Rights Reserved
-/bin/rngtest: Copyright (c) 2004 by Henrique de Moraes Holschuh +/bin/cpan5.32-x86_64-linux-gnu: Copyright (c) 2001-2015, brian d foyAll Rights Reserved. 
-/bin/screen: Copyright (c) 2015-2017 Juergen WeigertAlexander NaumovAmadeusz Slawinski +/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/screen: Copyright (c) 2008-2009 Juergen Weigert, Michael Schroeder, Micah Cowan, Sadrul Habib Chowdhury +/bin/ispell@(#Copyright (c), 1983, by Pace Willisson 
-/bin/screen: Copyright (c) 1993-2007 Juergen Weigert, Michael Schroeder +/bin/ispell: @(#) International version Copyright (c) 1987, 19881990-19951999
-/bin/screen: Copyright (c) 1987 Oliver Laumann +--More-- 
-/bin/scsi-rescan# (c) 1998--2010 Kurt Garloff <kurt@garloff.de>, GNU GPL v2 or v3 +[q]
-/bin/scsi-rescan: # (c) 2006--2018 Hannes Reinecke, GNU GPL v2 or later +
-/bin/sg_test_rwbuf: (c) Douglas Gilbert, Kurt Garloff, 2000-2007, GNU GPL +
-/bin/slabinfo: slabinfo 4/15/2011. (c) 2007 sgi/(c) 2011 Linux Foundation. +
-/bin/ssh-copy-id:Copyright (c) 1999-2016 Philip Hands <phil@hands.com> +
-/bin/strace: Copyright (c) 1991-%s The strace developers <%s>. +
-/bin/strace-log-merge: # Copyright (c) 2012-2019 The strace developers. +
-/bin/systemd-analyze: hashmap_update(*uid_refsUID_TO_PTR(uid)UINT32_TO_PTR(c)) >= 0 +
-/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/usb-devices: # Copyright (c) 2009 Randy Dunlap <rdunlap@xenotime.net> +
-/bin/usb-devices: Copyright (c2009 Frans Pop <elendil@planet.nl> +
-/bin/vdo: # Copyright (c) 2020 Red HatInc. +
-/bin/vdo-by-dev: # Copyright (c) 2020 Red HatInc. +
-/bin/vdostats: # Copyright (c) 2020 Red HatInc. +
-/bin/zip: Copyright (c) 1990-2008 Info-ZIP.  All rights reserved. +
-/bin/zip: Copyright (c) 1990-2008 Info-ZIP - Type '%s "-L"' for software license. +
-/bin/zip:     bzip2 code and library copyright (c) Julian     (See the bzip2 license for t +
-/bin/zipcloak: Copyright (c) 1990-2008 Info-ZIP.  All rights reserved. +
-/bin/zipcloak: Copyright (c) 1990-2008 Info-ZIP - Type '%s "-L"' for software license. +
-/bin/zipnote: Copyright (c) 1990-2008 Info-ZIP.  All rights reserved. +
-/bin/zipnote: Copyright (c) 1990-2008 Info-ZIP - Type '%s "-L"' for software license. +
-/bin/zipsplit: Copyright (c) 1990-2008 Info-ZIP.  All rights reserved. +
-/bin/zipsplit: Copyright (c) 1990-2008 Info-ZIP - Type '%s "-L"' for software license.+
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez que l'option -f a pour conséquence d'imprimer le nom du fichier contenant la chaîne au début de chaque ligne.  **Important** : Notez que l'option -f a pour conséquence d'imprimer le nom du fichier contenant la chaîne au début de chaque ligne. 
 </WRAP> </WRAP>
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **strings** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **strings** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 3064: Ligne 3100:
  
 <code> <code>
-[root@centos8 tmp]# comm /etc/passwd /root/passwd +root@debian11:/tmp# comm /etc/passwd /root/passwd 
- root:x:0:0:root:/root:/bin/bash +                root:x:0:0:root:/root:/bin/bash 
- bin:x:1:1:bin:/bin:/sbin/nologin +                daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 
- daemon:x:2:2:daemon:/sbin:/sbin/nologin +                bin:x:2:2:bin:/bin:/usr/sbin/nologin 
- adm:x:3:4:adm:/var/adm:/sbin/nologin +                sys:x:3:3:sys:/dev:/usr/sbin/nologin 
- lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin +                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/nologin 
- shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown +                man:x:6:12:man:/var/cache/man:/usr/sbin/nologin 
- halt:x:7:0:halt:/sbin:/sbin/halt +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin 
- mail:x:8:12:mail:/var/spool/mail:/sbin/nologin +                mail:x:8:8:mail:/var/mail:/usr/sbin/nologin 
- operator:x:11:0:operator:/root:/sbin/nologin +                news:x:9:9:news:/var/spool/news:/usr/sbin/nologin 
- games:x:12:100:games:/usr/games:/sbin/nologin +                uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin 
- ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin +commfile 1 is not in sorted order
- nobody:x:65534:65534:Kernel Overflow User:/:/sbin/nologin +
- dbus:x:81:81:System message bus:/:/sbin/nologin +
- systemd-coredump:x:999:997:systemd Core Dumper:/:/sbin/nologin +
- systemd-resolve:x:193:193:systemd Resolver:/:/sbin/nologin +
- tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin +
- polkitd:x:998:996:User for polkitd:/:/sbin/nologin +
- unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/sbin/nologin +
- libstoragemgmt:x:996:993:daemon account for libstoragemgmt:/var/run/lsm:/sbin/nologin +
- cockpit-ws:x:995:991:User for cockpit-ws:/nonexisting:/sbin/nologin +
- sssd:x:994:990:User for sssd:/:/sbin/nologin +
- setroubleshoot:x:993:989::/var/lib/setroubleshoot:/sbin/nologin +
- sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin +
- chrony:x:992:988::/var/lib/chrony:/sbin/nologin +
-tcpdump:x:72:72::/:/sbin/nologin +
- trainee10:x:1000:1000:trainee:/home/trainee:/bin/bash+
 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:/sbin/nologin +                proxy:x:13:13:proxy:/bin:/usr/sbin/nologin 
- rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin +                www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin 
- gluster:x:989:985:GlusterFS daemons:/run/gluster:/sbin/nologin +                backup:x:34:34:backup:/var/backups:/usr/sbin/nologin 
- qemu:x:107:107:qemu user:/:/sbin/nologin +                list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin 
- rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin +                irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin 
- rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin +                gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin 
- saslauth:x:988:76:Saslauthd user:/run/saslauthd:/sbin/nologin +                nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin 
- radvd:x:75:75:radvd user:/:/sbin/nologin +                _apt:x:100:65534::/nonexistent:/usr/sbin/nologin 
- dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/sbin/nologin +                systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin 
- Linux est super! +                systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin 
-trainee:x:1000:1000:trainee:/home/trainee:/bin/bash +                messagebus:x:103:109::/nonexistent:/usr/sbin/nologin 
-comm: file 1 is not in sorted order +                systemd-timesync:x:104:110:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin 
-cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/sbin/nologin +                usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin 
-rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin +                rtkit:x:106:113:RealtimeKit,,,:/proc:/usr/sbin/nologin 
-gluster:x:989:985:GlusterFS daemons:/run/gluster:/sbin/nologin +                dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin 
-qemu:x:107:107:qemu user:/:/sbin/nologin +                avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/sbin/nologin 
-rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin +                speech-dispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false 
-rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin +                pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin 
-saslauth:x:988:76:Saslauthd user:/run/saslauthd:/sbin/nologin +                saned:x:111:119::/var/lib/saned:/usr/sbin/nologin 
-radvd:x:75:75:radvd user:/:/sbin/nologin +                colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin 
-dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/sbin/nologin+                lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false 
 +        trainee10:x:1000:1000:trainee,,,:/home/trainee:/bin/bash 
 +        systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin 
 +        sshd:x:114:65534::/run/sshd:/usr/sbin/nologin 
 +        Linux is great! 
 +trainee:x:1000:1000:trainee,,,:/home/trainee:/bin/bash 
 +systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin 
 +sshd:x:114:65534::/run/sshd:/usr/sbin/nologin 
 +comm: input is not in sorted order
 </code> </code>
  
Ligne 3119: Ligne 3148:
  
 <code> <code>
-[root@centos8 tmp]# comm -12 /etc/passwd /root/passwd+root@debian11:/tmp# comm -12 /etc/passwd /root/passwd
 root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
-bin:x:1:1:bin:/bin:/sbin/nologin +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 
-daemon:x:2:2:daemon:/sbin:/sbin/nologin +bin:x:2:2:bin:/bin:/usr/sbin/nologin 
-adm:x:3:4:adm:/var/adm:/sbin/nologin +sys:x:3:3:sys:/dev:/usr/sbin/nologin 
-lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin +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/nologin 
-shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown +man:x:6:12:man:/var/cache/man:/usr/sbin/nologin 
-halt:x:7:0:halt:/sbin:/sbin/halt +mail:x:8:8:mail:/var/mail:/usr/sbin/nologin 
-mail:x:8:12:mail:/var/spool/mail:/sbin/nologin +news:x:9:9:news:/var/spool/news:/usr/sbin/nologin 
-operator:x:11:0:operator:/root:/sbin/nologin +uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin 
-games:x:12:100:games:/usr/games:/sbin/nologin +commfile 1 is not in sorted order
-ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin +
-nobody:x:65534:65534:Kernel Overflow User:/:/sbin/nologin +
-dbus:x:81:81:System message bus:/:/sbin/nologin +
-systemd-coredump:x:999:997:systemd Core Dumper:/:/sbin/nologin +
-systemd-resolve:x:193:193:systemd Resolver:/:/sbin/nologin +
-tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin +
-polkitd:x:998:996:User for polkitd:/:/sbin/nologin +
-unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/sbin/nologin +
-libstoragemgmt:x:996:993:daemon account for libstoragemgmt:/var/run/lsm:/sbin/nologin +
-cockpit-ws:x:995:991:User for cockpit-ws:/nonexisting:/sbin/nologin +
-sssd:x:994:990:User for sssd:/:/sbin/nologin +
-setroubleshoot:x:993:989::/var/lib/setroubleshoot:/sbin/nologin +
-sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin +
-chrony:x:992:988::/var/lib/chrony:/sbin/nologin+
 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:x:13:13:proxy:/bin:/usr/sbin/nologin 
 +www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin 
 +backup:x:34:34:backup:/var/backups:/usr/sbin/nologin 
 +list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin 
 +irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin 
 +gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin 
 +nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin 
 +_apt:x:100:65534::/nonexistent:/usr/sbin/nologin 
 +systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin 
 +systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin 
 +messagebus:x:103:109::/nonexistent:/usr/sbin/nologin 
 +systemd-timesync:x:104:110:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin 
 +usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin 
 +rtkit:x:106:113:RealtimeKit,,,:/proc:/usr/sbin/nologin 
 +dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin 
 +avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/sbin/nologin 
 +speech-dispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false 
 +pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin 
 +saned:x:111:119::/var/lib/saned:/usr/sbin/nologin 
 +colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin 
 +lightdm:x:113:121:Light Display Manager:/var/lib/lightdm:/bin/false 
 +comm: input is not in sorted order
 </code> </code>
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **comm** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **comm** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 3160: Ligne 3194:
  
 <code> <code>
-[root@centos8 tmp]# head /etc/passwd+root@debian11:/tmp# head /etc/passwd
 root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
-bin:x:1:1:bin:/bin:/sbin/nologin +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 
-daemon:x:2:2:daemon:/sbin:/sbin/nologin +bin:x:2:2:bin:/bin:/usr/sbin/nologin 
-adm:x:3:4:adm:/var/adm:/sbin/nologin +sys:x:3:3:sys:/dev:/usr/sbin/nologin 
-lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin +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/nologin 
-shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown +man:x:6:12:man:/var/cache/man:/usr/sbin/nologin 
-halt:x:7:0:halt:/sbin:/sbin/halt +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin 
-mail:x:8:12:mail:/var/spool/mail:/sbin/nologin +mail:x:8:8:mail:/var/mail:/usr/sbin/nologin 
-operator:x:11:0:operator:/root:/sbin/nologin+news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
 </code> </code>
  
Ligne 3176: Ligne 3210:
  
 <code> <code>
-[root@centos8 tmp]# head -n 15 /etc/passwd+root@debian11:/tmp# head -n 15 /etc/passwd
 root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
-bin:x:1:1:bin:/bin:/sbin/nologin +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 
-daemon:x:2:2:daemon:/sbin:/sbin/nologin +bin:x:2:2:bin:/bin:/usr/sbin/nologin 
-adm:x:3:4:adm:/var/adm:/sbin/nologin +sys:x:3:3:sys:/dev:/usr/sbin/nologin 
-lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin +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/nologin 
-shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown +man:x:6:12:man:/var/cache/man:/usr/sbin/nologin 
-halt:x:7:0:halt:/sbin:/sbin/halt +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin 
-mail:x:8:12:mail:/var/spool/mail:/sbin/nologin +mail:x:8:8:mail:/var/mail:/usr/sbin/nologin 
-operator:x:11:0:operator:/root:/sbin/nologin +news:x:9:9:news:/var/spool/news:/usr/sbin/nologin 
-games:x:12:100:games:/usr/games:/sbin/nologin +uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin 
-ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin +proxy:x:13:13:proxy:/bin:/usr/sbin/nologin 
-nobody:x:65534:65534:Kernel Overflow User:/:/sbin/nologin +www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin 
-dbus:x:81:81:System message bus:/:/sbin/nologin +backup:x:34:34:backup:/var/backups:/usr/sbin/nologin 
-systemd-coredump:x:999:997:systemd Core Dumper:/:/sbin/nologin+list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
 </code> </code>
  
Ligne 3197: Ligne 3231:
  
 <code> <code>
-[root@centos8 tmp]# head -c 150 /etc/passwd+root@debian11:/tmp# head -c 150 /etc/passwd
 root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
-bin:x:1:1:bin:/bin:/sbin/nologin +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 
-daemon:x:2:2:daemon:/sbin:/sbin/nologin +bin:x:2:2:bin:/bin:/usr/sbin/nologin 
-adm:x:3:4:adm:/var/adm:/sbin/nologin +sys:x:3:3:sys:/dev:/usr/sbin/noloroot@debian11:/tmp#
-lp:x:4:7[root@centos8 tmp]+
 </code> </code>
  
Ligne 3208: Ligne 3241:
  
 <code> <code>
-[root@centos8 tmp]# head -c -150 /etc/passwd+root@debian11:/tmp# head -c -150 /etc/passwd
 root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
-bin:x:1:1:bin:/bin:/sbin/nologin +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 
-daemon:x:2:2:daemon:/sbin:/sbin/nologin +bin:x:2:2:bin:/bin:/usr/sbin/nologin 
-adm:x:3:4:adm:/var/adm:/sbin/nologin +sys:x:3:3:sys:/dev:/usr/sbin/nologin 
-lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin +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/nologin 
-shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown +man:x:6:12:man:/var/cache/man:/usr/sbin/nologin 
-halt:x:7:0:halt:/sbin:/sbin/halt +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin 
-mail:x:8:12:mail:/var/spool/mail:/sbin/nologin +mail:x:8:8:mail:/var/mail:/usr/sbin/nologin 
-operator:x:11:0:operator:/root:/sbin/nologin +news:x:9:9:news:/var/spool/news:/usr/sbin/nologin 
-games:x:12:100:games:/usr/games:/sbin/nologin +uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin 
-ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin +proxy:x:13:13:proxy:/bin:/usr/sbin/nologin 
-nobody:x:65534:65534:Kernel Overflow User:/:/sbin/nologin +www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin 
-dbus:x:81:81:System message bus:/:/sbin/nologin +backup:x:34:34:backup:/var/backups:/usr/sbin/nologin 
-systemd-coredump:x:999:997:systemd Core Dumper:/:/sbin/nologin +list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin 
-systemd-resolve:x:193:193:systemd Resolver:/:/sbin/nologin +irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin 
-tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin +gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin 
-polkitd:x:998:996:User for polkitd:/:/sbin/nologin +nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin 
-unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/sbin/nologin +_apt:x:100:65534::/nonexistent:/usr/sbin/nologin 
-libstoragemgmt:x:996:993:daemon account for libstoragemgmt:/var/run/lsm:/sbin/nologin +systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin 
-cockpit-ws:x:995:991:User for cockpit-ws:/nonexisting:/sbin/nologin +systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin 
-sssd:x:994:990:User for sssd:/:/sbin/nologin +messagebus:x:103:109::/nonexistent:/usr/sbin/nologin 
-setroubleshoot:x:993:989::/var/lib/setroubleshoot:/sbin/nologin +systemd-timesync:x:104:110:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin 
-sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin +usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin 
-chrony:x:992:988::/var/lib/chrony:/sbin/nologin +rtkit:x:106:113:RealtimeKit,,,:/proc:/usr/sbin/nologin 
-tcpdump:x:72:72::/:/sbin/nologin +dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin 
-trainee:x:1000:1000:trainee:/home/trainee:/bin/bash +avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/sbin/nologin 
-cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/sbin/nologin +speech-dispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false 
-rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin +pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin 
-gluster:x:989:985:GlusterFS daemons:/run/gluster:/sbin/nologin +saned:x:111:119::/var/lib/saned:/usr/sbin/nologin 
-qemu:x:107:107:qemu user:/:/sbin/nologin +colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin 
-rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin +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:Saslauthd us[root@centos8 tmp]+
 </code> </code>
  
Ligne 3248: Ligne 3280:
  
 <code> <code>
-[root@centos8 tmp]# head -c 1b /etc/passwd+root@debian11:/tmp# head -c 1b /etc/passwd
 root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
-bin:x:1:1:bin:/bin:/sbin/nologin +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 
-daemon:x:2:2:daemon:/sbin:/sbin/nologin +bin:x:2:2:bin:/bin:/usr/sbin/nologin 
-adm:x:3:4:adm:/var/adm:/sbin/nologin +sys:x:3:3:sys:/dev:/usr/sbin/nologin 
-lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin +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/nologin 
-shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown +man:x:6:12:man:/var/cache/man:/usr/sbin/nologin 
-halt:x:7:0:halt:/sbin:/sbin/halt +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin 
-mail:x:8:12:mail:/var/spool/mail:/sbin/nologin +mail:x:8:8:mail:/var/mail:/usr/sbin/nologin 
-operator:x:11:0:operator:/root:/sbin/nologin +news:x:9:9:news:/var/spool/news:/usr/sbin/nologin 
-games:x:12:100:games:/usr/games:/sbin/nologin +uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin 
-ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin +proxy:x:13:13:proxy:/bin:/usr/sbin/nroot@debian11:/tmp# 
-nobody:x:65534:65534:Kernel Overflow [root@centos8 tmp]+
  
-[root@centos8 tmp]# head -c 512 /etc/passwd+root@debian11:/tmp# head -c 512 /etc/passwd
 root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
-bin:x:1:1:bin:/bin:/sbin/nologin +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin 
-daemon:x:2:2:daemon:/sbin:/sbin/nologin +bin:x:2:2:bin:/bin:/usr/sbin/nologin 
-adm:x:3:4:adm:/var/adm:/sbin/nologin +sys:x:3:3:sys:/dev:/usr/sbin/nologin 
-lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin +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/nologin 
-shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown +man:x:6:12:man:/var/cache/man:/usr/sbin/nologin 
-halt:x:7:0:halt:/sbin:/sbin/halt +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin 
-mail:x:8:12:mail:/var/spool/mail:/sbin/nologin +mail:x:8:8:mail:/var/mail:/usr/sbin/nologin 
-operator:x:11:0:operator:/root:/sbin/nologin +news:x:9:9:news:/var/spool/news:/usr/sbin/nologin 
-games:x:12:100:games:/usr/games:/sbin/nologin +uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin 
-ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin +proxy:x:13:13:proxy:/bin:/usr/sbin/nroot@debian11:/tmp#  
-nobody:x:65534:65534:Kernel Overflow [root@centos8 tmp]+ 
 +root@debian11:/tmp#
 </code> </code>
  
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'option **--help** de la commande **head** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **head** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 3301: Ligne 3331:
  
 <code> <code>
-[root@centos8 tmp]# tail /etc/passwd +root@debian11:/tmp# tail /etc/passwd 
-trainee:x:1000:1000:trainee:/home/trainee:/bin/bash +dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin 
-cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/sbin/nologin +avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/sbin/nologin 
-rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin +speech-dispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false 
-gluster:x:989:985:GlusterFS daemons:/run/gluster:/sbin/nologin +pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin 
-qemu:x:107:107:qemu user:/:/sbin/nologin +saned:x:111:119::/var/lib/saned:/usr/sbin/nologin 
-rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin +colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin 
-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:/:/sbin/nologin +systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin 
-dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/sbin/nologin+sshd:x:114:65534::/run/sshd:/usr/sbin/nologin
 </code> </code>
  
Ligne 3317: Ligne 3347:
  
 <code> <code>
-root@centos8 tmp]# tail -n 15 /etc/passwd +root@debian11:/tmp# tail -n 15 /etc/passwd 
-sssd:x:994:990:User for sssd:/:/sbin/nologin +systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin 
-setroubleshoot:x:993:989::/var/lib/setroubleshoot:/sbin/nologin +messagebus:x:103:109::/nonexistent:/usr/sbin/nologin 
-sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin +systemd-timesync:x:104:110:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin 
-chrony:x:992:988::/var/lib/chrony:/sbin/nologin +usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin 
-tcpdump:x:72:72::/:/sbin/nologin +rtkit:x:106:113:RealtimeKit,,,:/proc:/usr/sbin/nologin 
-trainee:x:1000:1000:trainee:/home/trainee:/bin/bash +dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin 
-cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/sbin/nologin +avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/sbin/nologin 
-rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin +speech-dispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false 
-gluster:x:989:985:GlusterFS daemons:/run/gluster:/sbin/nologin +pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin 
-qemu:x:107:107:qemu user:/:/sbin/nologin +saned:x:111:119::/var/lib/saned:/usr/sbin/nologin 
-rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin +colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin 
-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:/:/sbin/nologin +systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin 
-dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/sbin/nologin+sshd:x:114:65534::/run/sshd:/usr/sbin/nologin
 </code> </code>
  
Ligne 3338: Ligne 3368:
  
 <code> <code>
-[root@centos8 tmp]# tail -c 150 /etc/passwd +root@debian11:/tmp# tail -c 150 /etc/passwd 
-er:/run/saslauthd:/sbin/nologin +0:trainee,,,:/home/trainee:/bin/bash 
-radvd:x:75:75:radvd user:/:/sbin/nologin +systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin 
-dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/sbin/nologin+sshd:x:114:65534::/run/sshd:/usr/sbin/nologin
 </code> </code>
  
Ligne 3347: Ligne 3377:
  
 <code> <code>
-[root@centos8 tmp]# tail -c +150 /etc/passwd +root@debian11:/tmp# tail -c +150 /etc/passwd 
-7:lp:/var/spool/lpd:/sbin/nologin +ogin 
-sync:x:5:0:sync:/sbin:/bin/sync +sync:x:4:65534:sync:/bin:/bin/sync 
-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/cache/man:/usr/sbin/nologin 
-mail:x:8:12:mail:/var/spool/mail:/sbin/nologin +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin 
-operator:x:11:0:operator:/root:/sbin/nologin +mail:x:8:8:mail:/var/mail:/usr/sbin/nologin 
-games:x:12:100:games:/usr/games:/sbin/nologin +news:x:9:9:news:/var/spool/news:/usr/sbin/nologin 
-ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin +uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin 
-nobody:x:65534:65534:Kernel Overflow User:/:/sbin/nologin +proxy:x:13:13:proxy:/bin:/usr/sbin/nologin 
-dbus:x:81:81:System message bus:/:/sbin/nologin +www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin 
-systemd-coredump:x:999:997:systemd Core Dumper:/:/sbin/nologin +backup:x:34:34:backup:/var/backups:/usr/sbin/nologin 
-systemd-resolve:x:193:193:systemd Resolver:/:/sbin/nologin +list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin 
-tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin +irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin 
-polkitd:x:998:996:User for polkitd:/:/sbin/nologin +gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin 
-unbound:x:997:994:Unbound DNS resolver:/etc/unbound:/sbin/nologin +nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin 
-libstoragemgmt:x:996:993:daemon account for libstoragemgmt:/var/run/lsm:/sbin/nologin +_apt:x:100:65534::/nonexistent:/usr/sbin/nologin 
-cockpit-ws:x:995:991:User for cockpit-ws:/nonexisting:/sbin/nologin +systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin 
-sssd:x:994:990:User for sssd:/:/sbin/nologin +systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin 
-setroubleshoot:x:993:989::/var/lib/setroubleshoot:/sbin/nologin +messagebus:x:103:109::/nonexistent:/usr/sbin/nologin 
-sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin +systemd-timesync:x:104:110:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin 
-chrony:x:992:988::/var/lib/chrony:/sbin/nologin +usbmux:x:105:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin 
-tcpdump:x:72:72::/:/sbin/nologin +rtkit:x:106:113:RealtimeKit,,,:/proc:/usr/sbin/nologin 
-trainee:x:1000:1000:trainee:/home/trainee:/bin/bash +dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin 
-cockpit-wsinstance:x:991:987:User for cockpit-ws instances:/nonexisting:/sbin/nologin +avahi:x:108:114:Avahi mDNS daemon,,,:/run/avahi-daemon:/usr/sbin/nologin 
-rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin +speech-dispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false 
-gluster:x:989:985:GlusterFS daemons:/run/gluster:/sbin/nologin +pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin 
-qemu:x:107:107:qemu user:/:/sbin/nologin +saned:x:111:119::/var/lib/saned:/usr/sbin/nologin 
-rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin +colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin 
-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:/:/sbin/nologin +systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin 
-dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/sbin/nologin+sshd:x:114:65534::/run/sshd:/usr/sbin/nologin
 </code> </code>
  
Ligne 3385: Ligne 3415:
  
 <code> <code>
-[root@centos8 tmp]# tail -c 1b /etc/passwd +root@debian11:/tmp# tail -c 1b /etc/passwd 
-nstances:/nonexisting:/sbin/nologin +ispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false 
-rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin +pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin 
-gluster:x:989:985:GlusterFS daemons:/run/gluster:/sbin/nologin +saned:x:111:119::/var/lib/saned:/usr/sbin/nologin 
-qemu:x:107:107:qemu user:/:/sbin/nologin +colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin 
-rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin +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/sbin/nologin 
-radvd:x:75:75:radvd user:/:/sbin/nologin +sshd:x:114:65534::/run/sshd:/usr/sbin/nologin
-dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/sbin/nologin+
  
-[root@centos8 tmp]# tail -c 512 /etc/passwd +root@debian11:/tmp# tail -c 512 /etc/passwd 
-nstances:/nonexisting:/sbin/nologin +ispatcher:x:109:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false 
-rngd:x:990:986:Random Number Generator Daemon:/var/lib/rngd:/sbin/nologin +pulse:x:110:116:PulseAudio daemon,,,:/run/pulse:/usr/sbin/nologin 
-gluster:x:989:985:GlusterFS daemons:/run/gluster:/sbin/nologin +saned:x:111:119::/var/lib/saned:/usr/sbin/nologin 
-qemu:x:107:107:qemu user:/:/sbin/nologin +colord:x:112:120:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin 
-rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin +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/sbin/nologin 
-radvd:x:75:75:radvd user:/:/sbin/nologin +sshd:x:114:65534::/run/sshd:/usr/sbin/nologin
-dnsmasq:x:983:983:Dnsmasq DHCP and DNS server:/var/lib/dnsmasq:/sbin/nologin+
 </code> </code>
  
Ligne 3422: Ligne 3450:
  
 <code> <code>
-[root@centos8 tmp]# tail -f /var/log/messages +root@debian11:/tmp# tail -f /var/log/messages 
-Apr 20 06:27:53 centos8 systemd[1]: Started dnf makecache+Jun  1 00:00:20 debian11 kernel: [1848186.284195audittype=1400 audit(1654034420.410:44): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=20615 comm="cups-browsed" capability=23  capname="sys_nice" 
-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.ServiceUnknownThe 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: Succeeded. +Jun  2 09:31:47 debian11 org.freedesktop.thumbnails.Thumbnailer1[22054]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o 
-Apr 20 07:28:29 centos8 systemd[1]: Started dnf makecache. +Jun  2 09:31:47 debian11 org.freedesktop.thumbnails.Thumbnailer1[22054]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o 
-Apr 20 07:50:35 centos8 systemd[1]: Started /usr/bin/systemctl start man-db-cache-update. +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]: 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:50:36 centos8 systemd[1]: man-db-cache-update.serviceSucceeded+Jun  2 11:09:53 debian11 lightdm[22669]: Error getting user list from org.freedesktop.AccountsGDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files 
-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.serviceSucceeded.+Jun  2 11:20:08 debian11 lightdm[22970]: Error getting user list from org.freedesktop.AccountsGDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
 ^C ^C
 </code> </code>
  
-==Options de la commande== +<WRAP center round todo>
- +
-<WRAP center round todo 60%>+
 **A faire** : Utilisez l'option **--help** de la commande **tail** pour visualiser les options de la commande. **A faire** : Utilisez l'option **--help** de la commande **tail** pour visualiser les options de la commande.
 </WRAP> </WRAP>
Ligne 3445: Ligne 3471:
  
 <code> <code>
-[root@centos8 tmp]# ifconfig ens18+root@debian11:/tmp# apt install net-tools -y 
 +... 
 +root@debian11:/tmp# ifconfig ens18
 ens18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500 ens18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
-        inet 10.0.2.45  netmask 255.255.255.0  broadcast 10.0.2.255 +        inet 10.0.2.40  netmask 255.255.255.0  broadcast 10.0.2.255 
-        inet6 fe80::86b6:8d39:cab2:d84d  prefixlen 64  scopeid 0x20<link> +        inet6 fe80::f435:d1ff:fe39:972  prefixlen 64  scopeid 0x20<link> 
-        ether 4e:b1:31:bd:5d:b2  txqueuelen 1000  (Ethernet) +        ether f6:35:d1:39:09:72  txqueuelen 1000  (Ethernet) 
-        RX packets 11473  bytes 24023891 (22.MiB)+        RX packets 14346  bytes 7828206 (7.MiB)
         RX errors 0  dropped 0  overruns 0  frame 0         RX errors 0  dropped 0  overruns 0  frame 0
-        TX packets 9521  bytes 1744650 (1.MiB)+        TX packets 12221  bytes 1235952 (1.MiB)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  
-[root@centos8 tmp]# ifconfig ens18 | grep "inet" +root@debian11:/tmp# ifconfig ens18 | grep "inet" 
-        inet 10.0.2.45  netmask 255.255.255.0  broadcast 10.0.2.255 +        inet 10.0.2.40  netmask 255.255.255.0  broadcast 10.0.2.255 
-        inet6 fe80::86b6:8d39:cab2:d84d  prefixlen 64  scopeid 0x20<link>+        inet6 fe80::f435:d1ff:fe39:972  prefixlen 64  scopeid 0x20<link>
  
-[root@centos8 tmp]# ifconfig ens18 | grep "inet" | grep -v "inet6" +root@debian11:/tmp# ifconfig ens18 | grep "inet" | grep -v "inet6" 
-        inet 10.0.2.45  netmask 255.255.255.0  broadcast 10.0.2.255+        inet 10.0.2.40  netmask 255.255.255.0  broadcast 10.0.2.255
  
-[root@centos8 tmp]# ifconfig ens18 | grep "inet" | grep -v "inet6" | tr -s " " ":" +root@debian11:/tmp# ifconfig ens18 | grep "inet" | grep -v "inet6" | tr -s " " ":" 
-:inet:10.0.2.45:netmask:255.255.255.0:broadcast:10.0.2.255+:inet:10.0.2.40:netmask:255.255.255.0:broadcast:10.0.2.255
  
-[root@centos8 tmp]# ifconfig ens18 | grep "inet" | grep -v "inet6" | tr -s " " ":" | cut -d: -f3 +root@debian11:/tmp# ifconfig ens18 | grep "inet" | grep -v "inet6" | tr -s " " ":" | cut -d: -f3 
-10.0.2.45+10.0.2.40
 </code> </code>
  
-<WRAP center round important 60%>+<WRAP center round important>
 **Important** : Notez l'utilisation de l'option -s avec la commande tr. Cette option permet de remplacer une suite de x caractères identiques par un seul caractère.  **Important** : Notez l'utilisation de l'option -s avec la commande tr. Cette option permet de remplacer une suite de x caractères identiques par un seul caractère. 
 </WRAP> </WRAP>
Ligne 3476: Ligne 3504:
  
 <code> <code>
-[root@centos8 tmp]# ip addr show ens18 +root@debian11:/tmp# ip addr show ens18 
-2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 +2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 
-    link/ether 4e:b1:31:bd:5d:b2 brd ff:ff:ff:ff:ff:ff +    link/ether f6:35:d1:39:09:72 brd ff:ff:ff:ff:ff:ff 
-    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
        valid_lft forever preferred_lft forever        valid_lft forever preferred_lft forever
-    inet6 fe80::86b6:8d39:cab2:d84d/64 scope link noprefixroute +    inet6 fe80::f435:d1ff:fe39:972/64 scope link noprefixroute 
        valid_lft forever preferred_lft forever        valid_lft forever preferred_lft forever
  
-[root@centos8 tmp]# ip addr show ens18 | grep "inet" +root@debian11:/tmp# ip addr show ens18 | grep "inet" 
-    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 tmp]# ip addr show ens18 | grep "inet" | grep -v "inet6" +root@debian11:/tmp# ip addr show ens18 | grep "inet" | grep -v "inet6" 
-    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 tmp]# ip addr show ens18 | grep "inet" | grep -v "inet6" | awk '{ print $2; }' +root@debian11:/tmp# ip addr show ens18 | grep "inet" | grep -v "inet6" | awk '{ print $2; }' 
-10.0.2.45/24+10.0.2.40/24
  
-[root@centos8 tmp]# ip addr show ens18 | grep "inet" | grep -v "inet6" | awk '{ print $2; }' | sed 's/\/.*$//' +root@debian11:/tmp# ip addr show ens18 | grep "inet" | grep -v "inet6" | awk '{ print $2; }' | sed 's/\/.*$//' 
-10.0.2.45+10.0.2.40
 </code> </code>
  
 ----- -----
-Copyright © 2022 Hugh Norris.+Copyright © 2024 Hugh Norris.
Menu