Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
elearning:workbooks:centos:8:user:l101 [2021/10/24 19:57] – created admin | elearning:workbooks:centos:8:user:l101 [2023/05/10 16:15] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | 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 | + | * The / |
- | * Comprendre le fichier | + | * Understanding the / |
- | * Options | + | * 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: | ||
- | | + | * - - an ordinary file, |
- | | + | * d - a directory, |
- | | + | * l - a symbolic link, |
- | | + | * b - a bloc type peripheral, |
- | | + | * c - a character |
- | | + | * p - a named pipe for communication |
- | | + | * s - a network |
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: | ||
< | < | ||
- | [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 | ||
| | ||
16800396 drwxrwxrwt. 9 root root 185 Sep 6 08:31 .. | 16800396 drwxrwxrwt. 9 root root 185 Sep 6 08:31 .. | ||
- | | + | |
</ | </ | ||
**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: | ||
< | < | ||
- | [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 | ||
| | ||
16800396 drwxrwxrwt. 9 root root 185 Sep 6 08:31 .. | 16800396 drwxrwxrwt. 9 root root 185 Sep 6 08:31 .. | ||
- | | + | |
- | | + | |
</ | </ | ||
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: | ||
- | | + | |
- | | + | |
**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: | ||
< | < | ||
- | [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 | ||
| | ||
16800396 drwxrwxrwt. 9 root root 185 Sep 6 08:31 .. | 16800396 drwxrwxrwt. 9 root root 185 Sep 6 08:31 .. | ||
- | | + | |
- | | + | |
- | | + | |
</ | </ | ||
Ligne 405: | Ligne 405: | ||
----- | ----- | ||
- | < | + | Copyright © 2023 Hugh Norris. |
- | <div align=" | + | |
- | Copyright © 2021 Hugh Norris. | + | |
- | </ | + |