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.

123 lines
2.8 KiB

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