Symlinks Flashcards
(4 cards)
1
Q
What is the difference between hard links and symbolic links?
A
Hard links:
- are tied to specific psychical devices
- cannot reference folders
Symlinks can do all of above
2
Q
How to find what file is being linked to with hard links?
A
ls -i
prints inode identified of a file, which is same for original file and all links pointing to it
3
Q
How to create hard link and symbolic link?
A
Hard link: ln file linkname
Symlink: ln -s file linkname
4
Q
How to find if a file is a symbolic link?
A
ls -l
lrwxrwxrwx
l stands for symbolic link