home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX Power Tools

UNIX Power ToolsSearch this book
Previous: 18.7 Linking Directories Chapter 18
Linking, Renaming, and Copying Files
Next: 18.9 Renaming, Copying, or Comparing a Set of Files
 

18.8 Showing the Actual Filenames for Symbolic Links

sl
The sl program is a perl (37.1 ) script that traverses the pathnames supplied on the command line, and for each one, 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 , RS


Previous: 18.7 Linking Directories UNIX Power Tools Next: 18.9 Renaming, Copying, or Comparing a Set of Files
18.7 Linking Directories Book Index 18.9 Renaming, Copying, or Comparing a Set of Files

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System