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:centos:8:user:l101 [2021/10/24 19:57] – created adminelearning:workbooks:centos:8:user:l101 [2023/05/10 16:15] (Version actuelle) admin
Ligne 1: Ligne 1:
 ~~PDF:LANDSCAPE~~ ~~PDF:LANDSCAPE~~
  
-Version : **2021.01**+Version : **2023.01**
  
 Updated : ~~LASTMOD~~ Updated : ~~LASTMOD~~
Ligne 14: Ligne 14:
     * File Types     * File Types
     * The mount Command     * The mount Command
-    * Le Fichier /etc/fstab +    * The /etc/fstab file 
-      * Comprendre le fichier /etc/fstab +      * Understanding the /etc/fstab file 
-        * Options de Montage+        * Mount Options
     * The umount Command     * The umount Command
     * Unix File Systems     * Unix File Systems
Ligne 320: Ligne 320:
 The first character of each line indicates the file type: The first character of each line indicates the file type:
  
-  * **-** un fichier +  * - - an ordinary file, 
-  * **d** un répertoire +  * d - a directory, 
-  * **l** un lien symbolique +  * l - a symbolic link, 
-  * **b** un périphérique du type bloc +  * b - a bloc type peripheral, 
-  * **c** un périphérique du type caractère +  * c - a character type peripheral, 
-  * **p** un tube nommé pour la communication entre processus +  * p - a named pipe for communication between processes, 
-  * **s** un socket dans un contexte réseau+  * s - a network socket.
  
 To see the inode numbers, execute the previous command with, in addition, the **-i** option: To see the inode numbers, execute the previous command with, in addition, the **-i** option:
Ligne 349: Ligne 349:
  
 <code> <code>
-[root@centos8 ~]# cd /tmp; mkdir inode; cd inode; touch fichier1; ls -ali+[root@centos8 ~]# cd /tmp; mkdir inode; cd inode; touch file1; ls -ali
 total 0 total 0
  9199611 drwxr-xr-x. 2 root root  22 Sep  6 08:31 .  9199611 drwxr-xr-x. 2 root root  22 Sep  6 08:31 .
 16800396 drwxrwxrwt. 9 root root 185 Sep  6 08:31 .. 16800396 drwxrwxrwt. 9 root root 185 Sep  6 08:31 ..
- 8398272 -rw-r--r--. 1 root root   0 Sep  6 08:31 fichier1+ 8398272 -rw-r--r--. 1 root root   0 Sep  6 08:31 file1
 </code> </code>
  
 **file1** shows an inode number of **8398272** and a single name, indicated by the number **1** in the third column: **file1** shows an inode number of **8398272** and a single name, indicated by the number **1** in the third column:
  
-8398272 -rw-r--r--. 1 root root   0 Sep  6 08:31 fichier1+8398272 -rw-r--r--. 1 root root   0 Sep  6 08:31 file1
  
 Now create the hard link and check the result: Now create the hard link and check the result:
  
 <code> <code>
-[root@centos8 inode]# ln fichier1 fichier2+[root@centos8 inode]# ln file1 file2
 [root@centos8 inode]# ls -ali [root@centos8 inode]# ls -ali
 total 0 total 0
  9199611 drwxr-xr-x. 2 root root  38 Sep  6 08:32 .  9199611 drwxr-xr-x. 2 root root  38 Sep  6 08:32 .
 16800396 drwxrwxrwt. 9 root root 185 Sep  6 08:31 .. 16800396 drwxrwxrwt. 9 root root 185 Sep  6 08:31 ..
- 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 fichier1 + 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 file1 
- 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 fichier2+ 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 file2
 </code> </code>
  
 Now you can see two lines, one for file1 and a second for file2: Now you can see two lines, one for file1 and a second for file2:
  
- 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 fichier1\\ + 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 file1\\ 
- 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 fichier2+ 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 file2
  
 **file1** and **file2** are referenced by the same inode. As a result the number of names has been increased to two in the thrid column. **file1** and **file2** are referenced by the same inode. As a result the number of names has been increased to two in the thrid column.
Ligne 388: Ligne 388:
  
 <code> <code>
-[root@centos8 inode]# ln -s fichier1 fichier3+[root@centos8 inode]# ln -s file1 file3
 [root@centos8 inode]# ls -ali [root@centos8 inode]# ls -ali
 total 0 total 0
  9199611 drwxr-xr-x. 2 root root  54 Sep  6 08:34 .  9199611 drwxr-xr-x. 2 root root  54 Sep  6 08:34 .
 16800396 drwxrwxrwt. 9 root root 185 Sep  6 08:31 .. 16800396 drwxrwxrwt. 9 root root 185 Sep  6 08:31 ..
- 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 fichier1 + 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 file1 
- 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 fichier2 + 8398272 -rw-r--r--. 2 root root   0 Sep  6 08:31 file2 
- 8398273 lrwxrwxrwx. 1 root root   8 Sep  6 08:34 fichier3 -> fichier1+ 8398273 lrwxrwxrwx. 1 root root   8 Sep  6 08:34 file3 -> file1
 </code> </code>
  
Ligne 405: Ligne 405:
  
 ----- -----
-<html> +Copyright © 2023 Hugh Norris.
-<div align="center"> +
-Copyright © 2021 Hugh Norris. +
-</html>+
Menu