Linux symlinks Command
The Linux symlinks command is a utility for maintaining symbolic links.
symlinks can check symbolic links in a directory and display their types. The following are the symbolic link types that symlinks can identify:
- absolute: The symbolic link uses an absolute path.
- dangling: The original file no longer exists.
- lengthy: The symbolic link's path contains redundant "../".
- messy: The symbolic link's path contains redundant "/".
- other_fs: The original file is on a different filesystem.
- relative: The symbolic link uses a relative path.
Syntax
symlinks [-cdrstv][目录]
Parameters:
- -c Convert symbolic links that use absolute paths to relative paths.
- -d Remove symbolic links of the dangling type.
- -r Check symbolic links in all subdirectories under a directory.
- -s Check symbolic links of the lengthy type.
- -t When used together with -c, shows how absolute-path symbolic links would be converted to relative paths, but does not actually convert them.
- -v Display all types of symbolic links.
Linux Command Reference