The find command and symbolic links

ITEM: RTA000051137



QUESTION:                                                                       
I have a question on symbolic links (ie: /u and /home ). Why is                 
it that if I cd into /home and issue a find /home -print I see                  
files, but if I issue a find /u -print I get nothing back ??                    
If I cd into either directory and issue a ls I see files, but                   
find doesn't seem to " FIND" anything in /u. Does this have                     
to do with symbolic links ??                                                    
Also how can I distnguish between a symbolic and non-symbolic                   
link by looking at the file ????                                                
What does the lrwxrwxrwx ( l ) indicate here SYmbolic or non-sym ??             
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
A: I will answer your questions in the order you asked:                         
                                                                                
   Yes, this does have to do with the symbolic link.  The 'find' command       
   does not jump across this because (I assume this is the intent) it           
   could become lost in a recursive loop if a file is linked to a parent        
   directory.                                                                   
                                                                                
   In any case, you need to execute 'find /u/* -print' to pass over the         
   link.                                                                        
                                                                                
   Symbolicly linked files have the 'l' designation in the first column         
   of the permission field which you can see by executing the 'ls -la'          
   command.  Non- symbolicly linked files will have the same i-node             
   number, but will appear normal otherwise (a.k.a. hard-linked files).         
   You can check the i-nodes numbers with 'ls -li'.                             
                                                                                
   Therefore, "lrwxrwxrwx" is a symbolic link.                                  
                                                                               
   Thank you for using ASKQ/EQUAL.                                              
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
                                                                                
                                                                                
This item was created from library item Q674660      FDVCW                      
                                                                                
Additional search words:                                                        
AUTO AUTOMATIC CLASS EDUCATE FDVCW IX LINKS MANAGEMENT NOV94 OP                 
OZIBM OZNEW RISCMGMT RISCSYSTEM SOFTWARE SYMBOLIC SYS SYSTEM URGENT             
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000051137 ITEM: RTA000051137
Dated: 01/1996 Category: RISCMGMT
This HTML file was generated 99/06/24~12:43:19
Comments or suggestions? Contact us