diff --git a/6.files/index.html b/6.files/index.html index 73a7d60084fc63a6df754791ed6ed919c13edef7..a171a86e8e28883a4a1f14c3c4b2548462aeeeef 100644 --- a/6.files/index.html +++ b/6.files/index.html @@ -139,10 +139,10 @@ Change: 2019-07-19 16:56:35.540113838 +0200 <p style="margin:0">On peut créer un lien dur avec la commande <code>ln</code>:</p> </div> <pre style="margin:0"><code data-noescape class="shell" style="width:100%">$ ln /tmp/myfile /tmp/newlink -$ stat /tmp/myfile -<span style="opacity:0.5"> File: /tmp/myfile +$ stat /tmp/newlink + File: /tmp/newlink<span style="opacity:0.5"> Size: 0 Blocks: 0 IO Block: 4096 regular empty file -Device: 2fh/47d Inode: 422766 Links: </span><span style="opacity:1.">2</span><span style="opacity:0.5"> +Device: 2fh/47d Inode: 422766 </span><span style="opacity:1.">Links: 2</span><span style="opacity:0.5"> Access: (0644/-rw-r--r--) Uid: ( 1000/ chanel) Gid: ( 1000/ chanel) Access: 2019-07-19 16:56:35.540113838 +0200 Modify: 2019-07-19 16:56:35.540113838 +0200 @@ -191,9 +191,9 @@ Change: 2019-07-19 16:56:35.540113838 +0200 </li> </ul> <p style="margin:0;margin-bottom:20px;text-align:left">On peut créer un lien dur avec la commande <code>ln</code> en utilisant l'option <code>-s</code>:</p> -<pre style="margin:0"><code data-noescape class="shell" style="width:100%">$ ln -s /tmp/myfile /tmp/newlink # (le lien dure précédent à été supprimé) -$ stat /tmp/myfile # comme indiqué ci-dessous on a bien à faire à un autre inode -<span> File: /tmp/newlink -> /tmp/myfile +<pre style="margin:0"><code data-noescape class="shell" style="width:100%">$ ln -s /tmp/myfile /tmp/newsoftlink +$ stat /tmp/newsoftlink # comme indiqué ci-dessous on a bien à faire à un autre inode +<span> File: /tmp/newsoftlink -> /tmp/myfile Size: 11 Blocks: 0 IO Block: 4096 symbolic link Device: 2fh/47d Inode: 563876 Links: 1 Access: (0777/lrwxrwxrwx) Uid: ( 1000/ chanel) Gid: ( 1000/ chanel)