Symlink / Hardlink
- How to convert symlink to regular file?
- Convert symlinks to hard links
- Convert absolute symlink to relative symlink - use symlink tool:
symlink -cr .
and -t for dry run.- How change symlink path for many files?
-
create a hard link to a symbolic link - work on linux, not portable.
- How to find all hard links to a given file
Ruby
- How do I get the target of a symlink? -
File.realpath("symlink_path")
see also:
- rsync - which can recreate file from simlink when copying
- NFS - which can only work with relative link
- Find duplicate - which can generate symlink for similar files
Written on October 18, 2021, Last update on January 6, 2023
backup
filesystem
file