Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!amdahl!pacbell!unet!maine From: maine@unet.UUCP (Dennis J. W. Maine) Newsgroups: comp.unix.questions Subject: How to find directory name at end of symbolic links Message-ID: <304@unet.UUCP> Date: 8 Mar 89 23:54:47 GMT References: <10@sherpa.UUCP> <9745@smoke.BRL.MIL> Reply-To: maine@unet.PacBell.COM (Dennis J. W. Maine) Distribution: na Organization: Network Equipment Technologies, Redwood City, CA Lines: 15 I am using SunOs 3.5 and want to know how to find out the directory name at the end of a series of symbolic links. The -L option for ls does not seem to work with -l option. For example, if /dir1/a is linked to /dir2/a is linked to /dir3/a then if I enter ls -L /dir1/a I want to know that dir3 contains the actual file a. Entering successive ls -l commands for dir1, dir2 and dir3 is a drag. Any ideas? adTHANKSvance, djwm -- Dennis J. W. Maine {oliveb!ames!tymix!sunncal!amdahl!pacbell!}unet!maine [These are my personal opinions: fill in your favorite disclaimer]