How do you find the symbolic links to files.

Andy Crump andyc at bucky.intel.com
Thu Nov 29 21:59:30 AEST 1990


>>>>> On 26 Nov 90 15:07:16 GMT, jonb at specialix.co.uk (Jon Brawn) said:

Jon> OK, so thats found all the real links. Reading the subject line, how
Jon> do you find all the *symbolic* links? How do I access a symbolic link
Jon> file to find out that it IS a symbolic link (I mean from within C, I
Jon> assume stat( char *filename ) is going to stat the pointed too file?)

Jon> Does 'find' have a wonderful flag for finding symlinks?
Jon> Do any of ncheck/icheck/dcheck/fsck/fsdb/anything understand them?


In SVR4, find as the option parameter of 'l' to -type.  Thus
find <dir> -type l -print, will print all files that are a symbolic
link.  Tho this doesn't tell you where they point.
--

    -- Andy Crump

    ...!tektronix!reed!littlei!andyc | andyc at littlei.intel.com
    ...!uunet!littlei!andyc          | andyc at littlei.uu.net

Disclaimer: Any opinions expressed here are my own and 
            not representive of Intel Corportation.



More information about the Comp.unix.internals mailing list