Linux symlinks command details how to use the Linux symlinks command

Source: Internet
Author: User

Symlinks checks the symbolic connections in the directory and displays 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.


Symlinks [-cdrstv] [Directory]


  • -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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.