You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
2.7 KiB

11 years ago
13 years ago
13 years ago
13 years ago
  1. .TH SYMLINKS 8 "April 2014" "Version 1.4.3"
  2. .SH NAME
  3. symlinks \- symbolic link maintenance utility
  4. .SH SYNOPSIS
  5. .B symlinks
  6. [
  7. .B -cdorstv
  8. ]
  9. dirlist
  10. .SH DESCRIPTION
  11. .BI symlinks
  12. scans directories for symbolic links and lists them on stdout,
  13. often revealing broken links in the filesystem tree.
  14. .PP
  15. Each link is output with a classification of
  16. .B relative,
  17. .B absolute,
  18. .B dangling,
  19. .B messy,
  20. .B lengthy,
  21. or
  22. .B other_fs.
  23. .PP
  24. .B relative
  25. links are those expressed as paths relative to the directory in which
  26. the links reside, usually independent of the mount point of the filesystem.
  27. .PP
  28. .B absolute
  29. links are those given as an absolute path from the root directory
  30. as indicated by a leading slash (/).
  31. .PP
  32. .B dangling
  33. links are those for which the target of the link does not currently exist.
  34. This commonly occurs for
  35. .B absolute
  36. links when a filesystem is mounted at other than its
  37. customary mount point (such as when the normal root filesystem is
  38. mounted at /mnt after booting from alternative media).
  39. .PP
  40. .B messy
  41. links are links which contain unnecessary slashes or dots in the path.
  42. These are cleaned up as well when
  43. .B -c
  44. is specified.
  45. .PP
  46. .B lengthy
  47. links are links which use "../" more than necessary in the path
  48. (eg. /bin/vi -> ../bin/vim)
  49. These are only detected when
  50. .B -s
  51. is specified, and are only cleaned up when
  52. .B -c
  53. is also specified.
  54. .PP
  55. .B other_fs
  56. are those links whose target currently resides on a different filesystem
  57. from where symlinks was run (most useful with
  58. .B -r
  59. ).
  60. .PP
  61. .SH OPTIONS
  62. .TP
  63. .I -c
  64. convert absolute links (within the same filesystem) to relative links.
  65. This permits links to maintain their validity regardless of the mount
  66. point used for the filesystem -- a desirable setup in most cases.
  67. This option also causes any
  68. .B messy
  69. links to be cleaned up, and, if
  70. .B -s
  71. was also specified, then
  72. .B lengthy
  73. links are also shortened.
  74. Links affected by
  75. .B -c
  76. are prefixed with
  77. .B changed
  78. in the output.
  79. .TP
  80. .I -d
  81. causes
  82. .B dangling
  83. links to be removed.
  84. .TP
  85. .I -o
  86. fix links on other filesystems encountered while recursing.
  87. Normally, other filesystems encountered are not modified by symlinks.
  88. .TP
  89. .I -r
  90. recursively operate on subdirectories within the same filesystem.
  91. .TP
  92. .I -s
  93. causes
  94. .B lengthy
  95. links to be detected.
  96. .TP
  97. .I -t
  98. is used to test for what
  99. .B symlinks
  100. would do if
  101. .B -c
  102. were specified, but without really changing anything.
  103. .TP
  104. .I -v
  105. show all symbolic links. By default,
  106. .B relative
  107. links are not shown unless
  108. .B -v
  109. is specified.
  110. .PP
  111. .SH BUGS
  112. .B symlinks
  113. does not recurse or change links across filesystems.
  114. .PP
  115. .SH AUTHOR
  116. .B symlinks
  117. was created by Mark Lord <mlord@pobox.com>. The current maintainer is J. Brandt Buckley <brandt@runlevel1.com>.
  118. .SH SEE ALSO
  119. .BR symlink (2)