general review
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
---
|
||||
title: "links"
|
||||
tags: [ "Documentation", "basics" ]
|
||||
tags: [ "Documentation", "Basics" ]
|
||||
---
|
||||
Link from X to Y.
|
||||
|
||||
> ln -s X ../otherdir/Y
|
||||
|
||||
Links cause ownership headaches. Solve this with -h:
|
||||
If you want a hard link, this will make a single file exist in two locations.
|
||||
If it is deleted in one location, it continues to exist in the other.
|
||||
|
||||
> chown -h user1 mysymlink
|
||||
> ln *X* *Y*
|
||||
|
||||
Both files must be on the same hard drive, as they have the same inode (check this with `ls -i file`).
|
||||
|
||||
|
Reference in New Issue
Block a user