Linux symlinks Command
The Linux symlinks command is a utility for maintaining symbolic links.
symlinks can inspect symbolic links in a directory and display their types. The following are the types of symbolic links that symlinks can identify:
absolute: The symbolic link uses an absolute path.
dangling: The original file no longer exists.
lengthy: The path of the symbolic link contains redundant "../".
messy: The path of the symbolic link contains redundant "/".
other_fs: The original file is located on another file system.
relative: The symbolic link uses a relative path.
Syntax
symlinks [-cdrstv][directory]
Parameters:
-c Converts symbolic links using absolute paths to relative paths.
-d Removes dangling symbolic links.
-r Checks symbolic links in all subdirectories.
-s Checks lengthy symbolic links.
-t When used with -c, it shows how to convert absolute path symbolic links to relative paths without actually converting them.
-v Displays all types of symbolic links.