Skip to content
Snippets Groups Projects
Commit 3916fdd8 authored by Guillaume Chanel's avatar Guillaume Chanel
Browse files

Correct stats and links

parent 4dc99ef5
Branches
No related tags found
No related merge requests found
...@@ -139,10 +139,10 @@ Change: 2019-07-19 16:56:35.540113838 +0200 ...@@ -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> <p style="margin:0">On peut créer un lien dur avec la commande <code>ln</code>:</p>
</div> </div>
<pre style="margin:0"><code data-noescape class="shell" style="width:100%">$ ln /tmp/myfile /tmp/newlink <pre style="margin:0"><code data-noescape class="shell" style="width:100%">$ ln /tmp/myfile /tmp/newlink
$ stat /tmp/myfile $ stat /tmp/newlink
<span style="opacity:0.5"> File: /tmp/myfile File: /tmp/newlink<span style="opacity:0.5">
Size: 0 Blocks: 0 IO Block: 4096 regular empty file 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: (0644/-rw-r--r--) Uid: ( 1000/ chanel) Gid: ( 1000/ chanel)
Access: 2019-07-19 16:56:35.540113838 +0200 Access: 2019-07-19 16:56:35.540113838 +0200
Modify: 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 ...@@ -191,9 +191,9 @@ Change: 2019-07-19 16:56:35.540113838 +0200
</li> </li>
</ul> </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> <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é) <pre style="margin:0"><code data-noescape class="shell" style="width:100%">$ ln -s /tmp/myfile /tmp/newsoftlink
$ stat /tmp/myfile # comme indiqué ci-dessous on a bien à faire à un autre inode $ stat /tmp/newsoftlink # comme indiqué ci-dessous on a bien à faire à un autre inode
<span> File: /tmp/newlink -> /tmp/myfile <span> File: /tmp/newsoftlink -> /tmp/myfile
Size: 11 Blocks: 0 IO Block: 4096 symbolic link Size: 11 Blocks: 0 IO Block: 4096 symbolic link
Device: 2fh/47d Inode: 563876 Links: 1 Device: 2fh/47d Inode: 563876 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 1000/ chanel) Gid: ( 1000/ chanel) Access: (0777/lrwxrwxrwx) Uid: ( 1000/ chanel) Gid: ( 1000/ chanel)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment