Showing the Actual Filenames for Symbolic Links (Unix Power Tools, 3rd Edition)
10.8. Showing the Actual Filenames for Symbolic Links
Go to http://examples.oreilly.com/upt3 for more information on: sl
The sl
program is a perl script (see coverage of Perl in
Chapter 41) that traverses the
pathnames supplied on the command line, and
for each one, it tells you if it had to follow any symbolic links to
find the actual filename. Symbolic links to
absolute pathnames start over at the left
margin. Symbolic links to relative pathnames are aligned vertically
with the path element they replace. For example:
$ sl /usr/lib/libXw.a
/usr/lib/libXw.a:
/usr/lib/libXw.a -> /usr/lib/X11/libXw.a
/usr/lib/X11 -> /X11/lib
/X11 -> /usr/local/X11R4
/usr/local/X11R4/lib/libXw.a
$ sl /bin/rnews
/bin -> /usr/bin
/usr/bin/rnews -> /usr/lib/news/rnews
/usr/lib/news -> ../local/lib/news
local/lib/news/rnews -> inews
inews
--LW and RS
10.7. Linking Directories10.9. Renaming, Copying, or Comparing a Set of Files
Copyright © 2003 O'Reilly & Associates. All rights reserved.
Wyszukiwarka
Podobne podstrony:
ch10 (9)ch10ch10CH10 (17)ch10ch10ch10BW ch10ch10ch10ch10ch10 (21)ch10ch10ch10ch10ch10więcej podobnych podstron