1SYMLINKS(8)                 System Manager's Manual                SYMLINKS(8)
2
3
4

NAME

6       symlinks - symbolic link maintenance utility
7

SYNOPSIS

9       symlinks [ -cdrstv ] dirlist
10

DESCRIPTION

12       symlinks  is a useful utility for maintainers of FTP sites, CDROMs, and
13       Linux software distributions.  It scans directories for symbolic  links
14       and lists them on stdout, often revealing flaws in the filesystem tree.
15
16       Each  link  is output with a classification of relative, absolute, dan‐
17       gling, messy, lengthy, or other_fs.
18
19       relative links are those expressed as paths relative to  the  directory
20       in  which  the  links reside, usually independent of the mount point of
21       the filesystem.
22
23       absolute links are those given as an absolute path from the root direc‐
24       tory as indicated by a leading slash (/).
25
26       dangling links are those for which the target of the link does not cur‐
27       rently exist.  This commonly occurs for absolute links when a  filesys‐
28       tem  is  mounted  at other than its customary mount point (such as when
29       the normal root filesystem is mounted at /mnt after booting from alter‐
30       native media).
31
32       messy  links are links which contain unnecessary slashes or dots in the
33       path.  These are cleaned up as well when -c is specified.
34
35       lengthy links are links which use "../" more than necessary in the path
36       (eg.   /bin/vi -> ../bin/vim) These are only detected when -s is speci‐
37       fied, and are only cleaned up when -c is also specified.
38
39       other_fs are those links whose target currently resides on a  different
40       filesystem from where symlinks was run (most useful with -r ).
41

OPTIONS

43       -c     convert  absolute links (within the same filesystem) to relative
44              links.  This permits links to maintain their validity regardless
45              of  the mount point used for the filesystem -- a desirable setup
46              in most cases.  This option also causes any messy  links  to  be
47              cleaned  up,  and,  if -s was also specified, then lengthy links
48              are also shortened.  Links affected  by  -c  are  prefixed  with
49              changed in the output.
50
51       -d     causes dangling links to be removed.
52
53       -r     recursively  operate  on subdirectories within the same filesys‐
54              tem.
55
56       -s     causes lengthy links to be detected.
57
58       -t     is used to test for what symlinks would do if -c were specified,
59              but without really changing anything.
60
61       -v     show  all  symbolic  links.   By default, relative links are not
62              shown unless -v is specified.
63

BUGS

65       symlinks does not recurse or change links across filesystems.
66

AUTHOR

68       symlinks has been written by Mark Lord  <mlord@bnr.ca>,  the  developer
69       and maintainer of the IDE Performance Package for linux.
70

SEE ALSO

72       symlink(2)
73
74
75
76Version 1.2                      November 1994                     SYMLINKS(8)
Impressum