[HPADM] [SUMMARY] Soft Link identification

From: Stephanie C (stepchung_at_gmail.com)
Date: 09/28/05

  • Next message: Marles, Rob: "[HPADM] QUESTION: FTP connection closing NIC Services on C3600"
    Date: Tue, 27 Sep 2005 15:33:30 -0700
    To: HP-UX Group <hpux-admin@dutchworks.nl>
    
    

    Thanks to Bill Thompson, Andy Cranton, John Lanier and others.

    find / -type l -exec ls -ld {} \;
    --> find / -type l -print
    --> ll `find / -type l -print` | more
    --> ll `find / -type l -print` | wc -l
    --> ll `find / -type l -print` >links.txt

    From "man find":
    -----------------

    -type c True if the type of the file is c, where c is
    one of:
    f Regular file
    d Directory
    b Block special file
    c Character special file
    p FIFO (named pipe)
    l Symbolic link <--
    s Socket
    n Network special file
    M Mount point

    -links n True if the file has n links.
     find / -type f -links +1 -print

     I inhered the messy HP-UX servers from a gentlemen who left the company.
    Looking at the systems directories structure, I get severe head ache. He
    linked files and directories over places. Is there a way to identify all the
    files and directories soft link on the system. I do not want to do one
    directory at a time. This will take forever. Thanks.
     Stephanie

    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Marles, Rob: "[HPADM] QUESTION: FTP connection closing NIC Services on C3600"