Linux symlinks command
The Linux symlinks command is a utility program for maintaining symbolic links.
symlinks can check symbolic links in a directory and display the types of symbolic links. The following are the symbolic link types that symlinks can determine:
- 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 located in another file system.
- relative: The symbolic link uses a relative path.
Syntax
symlinks [-cdrstv][目录]
Parameters:
- -c Convert symbolic links using absolute paths to relative paths.
- -d Remove dangling type symbolic links.
- -r Check symbolic links in all subdirectories under the directory.
- -s Check lengthy type symbolic links.
- -t When used with -c, it shows how to convert absolute-path symbolic links to relative paths, but does not actually convert them.
- -v Display all types of symbolic links.
Linux Command Reference