For something a little easier to parse in a shell script, you can use the [tt]file[/tt] command, like so:
Code:
$ file /sbin/telinit
/sbin/telinit: symbolic link to `init'
$
Note that both mrn and my answers relate only to symbolic links. Hard links are a little trickier, but you're probably not looking for those because they are, for all intents and purposes, actual files.
- Rod
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+
Wish you could view posts with a fixed font? Got Firefox & Greasemonkey?Give yourself the option.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.