Symlinks (symbolic links)
Function Description: tool for maintaining symbolic connections.
Syntax: symlinks [-cdrstv] [Directory]
Note: symlinks can check the symbolic connection in the directory and display the symbolic connection type. The following are the types of symbolic connections that can be judged by symlinks:
Absolute: the absolute path is used for symbolic connections.
Dangling: the original file does not exist.
Lengthy: the path of the symbolic connection contains redundant "../".
Messy: the path of the symbolic connection contains redundant "/".
Other_fs: the original file is located in another file system.
Relative: The relative path is used for symbolic connections.
Parameters:
-C converts an absolute path to a relative path.
-D remove the dangling-type symbolic connections.
-R: Check the symbolic connections in all subdirectories of the directory.
-S checks the lengthy-type symbolic connections.
-T and-c will show how to convert the absolute path symbolic link to a relative path, but will not actually convert it.
-V displays all types of symbolic connections.