English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux symlinks command

Linux Command Manual

The Linux symlinks command is a tool program used to maintain symbolic links.

The symlinks command can check symbolic links in directories and display symbolic link types. The following are the symbolic link types that symlinks can determine:

  • absolute: Symbolic links use absolute paths.
  • dangling: The original file does not exist.
  • lengthy: The path of the symbolic link contains extra "../".
  • messy: The path of the symbolic link contains extra "./".
  • other_fs: The original file is located in another file system.
  • relative: Symbolic links use relative paths.

Syntax

symlinks [-cdrstv][Directory]

Parameters:

  • -c Convert symbolic links using absolute paths to relative paths.
  • -d Remove dangling type symbolic links.
  • -r Check symbolic links in all subdirectories of the directory.
  • -s Check lengthy type symbolic links.
  • -t With-c When used with, it will show how to convert symbolic links with absolute paths to relative paths, but will not actually convert them.
  • -v Display all types of symbolic links.

Linux Command Manual