- How can i create hard link for my directories ?
- When i use to make link from /var to /home it shows error on "Invalid cross-device link", How can i over come it ?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
You can only make symbolic links to directories.
man 7 symlink:
Hard links may not refer to directories (to pre‐ vent the possibility of loops within the file system tree, which would confuse many programs) and may not refer to files on different file systems (because i-node numbers are not unique across file systems).
To make backups, use
cpio (sometimes together with
By using the
Read this for more info.