Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format
PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
doc:systeme:ln [04/07/2024 18:33] agp91 [Introduction] |
doc:systeme:ln [04/07/2024 19:29] agp91 |
||
---|---|---|---|
Ligne 11: | Ligne 11: | ||
* Suivi : {{tag>à-compléter}}{{tag>à-tester}} | * Suivi : {{tag>à-compléter}}{{tag>à-tester}} | ||
* Création par [[user>smolski]] le 21/06/2010 | * Création par [[user>smolski]] le 21/06/2010 | ||
- | * Testé par .... le .... | + | * Testé par [[user>agp91]] le 04/07/2024 |
* Commentaires sur le forum : [[http://debian-facile.org/viewtopic.php?pid=113446|C'est ici]]((N'hésitez pas à y faire part de vos remarques, succès, améliorations ou échecs !)) | * Commentaires sur le forum : [[http://debian-facile.org/viewtopic.php?pid=113446|C'est ici]]((N'hésitez pas à y faire part de vos remarques, succès, améliorations ou échecs !)) | ||
Ligne 81: | Ligne 81: | ||
<code user>ls -l</code> | <code user>ls -l</code> | ||
<code> | <code> | ||
+ | total 4 | ||
-rw-r--r-- 1 martin martin 13 déc 14 22:02 test1.txt | -rw-r--r-- 1 martin martin 13 déc 14 22:02 test1.txt | ||
</code> | </code> | ||
Ligne 93: | Ligne 94: | ||
<code user> | <code user> | ||
- | ls -l</code> | + | ls -l |
- | <code> | + | </code><code> |
+ | total 4 | ||
lrwxrwxrwx 1 martin martin 9 déc 14 22:05 lien1.txt -> test1.txt | lrwxrwxrwx 1 martin martin 9 déc 14 22:05 lien1.txt -> test1.txt | ||
-rw-r--r-- 1 martin martin 13 déc 14 22:02 test1.txt | -rw-r--r-- 1 martin martin 13 déc 14 22:02 test1.txt | ||
Ligne 131: | Ligne 133: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 4 | ||
lrwxrwxrwx 1 martin martin 9 déc 14 22:05 lien1.txt -> test1.txt | lrwxrwxrwx 1 martin martin 9 déc 14 22:05 lien1.txt -> test1.txt | ||
-rw-r--r-- 1 martin martin 30 déc 14 22:08 test1.txt | -rw-r--r-- 1 martin martin 30 déc 14 22:08 test1.txt | ||
Ligne 149: | Ligne 152: | ||
ls -li | ls -li | ||
</code><code> | </code><code> | ||
+ | total 4 | ||
8667148 lrwxrwxrwx 1 martin martin 9 déc 14 22:05 lien1.txt -> test1.txt | 8667148 lrwxrwxrwx 1 martin martin 9 déc 14 22:05 lien1.txt -> test1.txt | ||
8667139 -rw-r--r-- 1 martin martin 30 déc 14 22:08 test1.txt | 8667139 -rw-r--r-- 1 martin martin 30 déc 14 22:08 test1.txt | ||
Ligne 163: | Ligne 167: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 4 | ||
-rw-r--r-- 1 martin martin 30 déc 14 22:08 test1.txt | -rw-r--r-- 1 martin martin 30 déc 14 22:08 test1.txt | ||
</code> | </code> | ||
Ligne 171: | Ligne 176: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 4 | ||
lrwxrwxrwx 1 martin martin 9 déc 14 22:13 lien1.txt -> test1.txt | lrwxrwxrwx 1 martin martin 9 déc 14 22:13 lien1.txt -> test1.txt | ||
-rw-r--r-- 1 martin martin 30 déc 14 22:08 test1.txt | -rw-r--r-- 1 martin martin 30 déc 14 22:08 test1.txt | ||
Ligne 183: | Ligne 189: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 4 | ||
lrwxrwxrwx 1 martin martin 9 déc 14 22:13 lien2.txt -> test1.txt | lrwxrwxrwx 1 martin martin 9 déc 14 22:13 lien2.txt -> test1.txt | ||
-rw-r--r-- 1 martin martin 30 déc 14 22:08 test1.txt | -rw-r--r-- 1 martin martin 30 déc 14 22:08 test1.txt | ||
Ligne 200: | Ligne 207: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 4 | ||
lrwxrwxrwx 1 martin martin 9 déc 14 22:13 lien1.txt -> test1.txt | lrwxrwxrwx 1 martin martin 9 déc 14 22:13 lien1.txt -> test1.txt | ||
-rw-r--r-- 1 martin martin 30 déc 14 22:08 test2.txt | -rw-r--r-- 1 martin martin 30 déc 14 22:08 test2.txt | ||
Ligne 231: | Ligne 239: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 4 | ||
lrwxrwxrwx 1 martin martin 9 déc 14 23:00 lien1.txt -> test1.txt | lrwxrwxrwx 1 martin martin 9 déc 14 23:00 lien1.txt -> test1.txt | ||
-rw-r--r-- 1 martin martin 13 déc 14 22:59 test1.txt | -rw-r--r-- 1 martin martin 13 déc 14 22:59 test1.txt | ||
Ligne 243: | Ligne 252: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 4 | ||
lrwxrwxrwx 1 martin martin 9 déc 14 23:00 lien1.txt -> test1.txt | lrwxrwxrwx 1 martin martin 9 déc 14 23:00 lien1.txt -> test1.txt | ||
-rwx------ 1 martin martin 13 déc 14 22:59 test1.txt | -rwx------ 1 martin martin 13 déc 14 22:59 test1.txt | ||
Ligne 275: | Ligne 285: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 0 | ||
-rw-r--r-- 1 martin martin 0 déc 15 00:02 test2.txt | -rw-r--r-- 1 martin martin 0 déc 15 00:02 test2.txt | ||
</code> | </code> | ||
Ligne 283: | Ligne 294: | ||
ls -lv | ls -lv | ||
</code><code> | </code><code> | ||
+ | total 0 | ||
-rw-r--r-- 2 martin martin 0 déc 15 00:02 lien2.txt | -rw-r--r-- 2 martin martin 0 déc 15 00:02 lien2.txt | ||
-rw-r--r-- 2 martin martin 0 déc 15 00:02 test2.txt</code> | -rw-r--r-- 2 martin martin 0 déc 15 00:02 test2.txt</code> | ||
Ligne 293: | Ligne 305: | ||
Pareillement dans la ligne du ''lien2.txt'' : ''-rw-r--r-- **2** martin martin 0 déc 15 00:02 lien2.txt'' | Pareillement dans la ligne du ''lien2.txt'' : ''-rw-r--r-- **2** martin martin 0 déc 15 00:02 lien2.txt'' | ||
+ | |||
+ | <note tip>Le second champ retourné par le commande ''ls -l'', indique ne nombre de noms (chemins) que dispose un fichier.\\ | ||
+ | \\ | ||
+ | * ''1'' : Quand un fichier n'est pas lié physiquement. | ||
+ | * ''2'' : Indique que ce fichier est lié à un autre fichier. Il dispose alors de 2 noms. | ||
+ | * ''3'' : Indique que ce fichier est lié à deux autres fichiers. Il dispose alors de 3 noms. | ||
+ | * Etc. | ||
+ | </note> | ||
Une autre différence est le partage des droits qui sont là __tout à fait identiques__ entre les fichiers liés physiquement. | Une autre différence est le partage des droits qui sont là __tout à fait identiques__ entre les fichiers liés physiquement. | ||
Ligne 325: | Ligne 345: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 8 | ||
-rw-r--r-- 2 martin martin 32 déc 15 13:52 lien2.txt | -rw-r--r-- 2 martin martin 32 déc 15 13:52 lien2.txt | ||
-rw-r--r-- 2 martin martin 32 déc 15 13:52 test2.txt | -rw-r--r-- 2 martin martin 32 déc 15 13:52 test2.txt | ||
Ligne 338: | Ligne 359: | ||
ls -li | ls -li | ||
</code><code> | </code><code> | ||
+ | total 8 | ||
8667149 -rw-r--r-- 2 martin martin 32 déc 15 13:52 lien2.txt | 8667149 -rw-r--r-- 2 martin martin 32 déc 15 13:52 lien2.txt | ||
8667149 -rw-r--r-- 2 martin martin 32 déc 15 13:52 test2.txt | 8667149 -rw-r--r-- 2 martin martin 32 déc 15 13:52 test2.txt | ||
Ligne 355: | Ligne 377: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 4 | ||
-rw-r--r-- 1 martin martin 32 déc 15 13:52 lien2.txt | -rw-r--r-- 1 martin martin 32 déc 15 13:52 lien2.txt | ||
</code> | </code> | ||
Ligne 368: | Ligne 391: | ||
ls -l | ls -l | ||
</code><code> | </code><code> | ||
+ | total 0 | ||
</code> | </code> | ||