| 
     
       |  |  |  | 
            
              | 
             
               | 
               
                 |  | UGU: Unix Guru Universe - Unix Tip #4546- August 22, 2025
 -  Home : Help
 : Today's Tip Unix Tip #4546- August 22, 2025
 
 
COLLECTING FILES 
NOTE: Depending on how the command is used, an
 admin with root can abuse their privileges.
 
 If there are similar files on a system and you wish
 to collect the contents of those files (possibly
 for security reasons) the following command
 will search a system for a filename and output
 the contents into a file to be viewed.
 
 # find / -name .rhosts -perm -004 -print > rhosts 2>e &
 
 Another use was brought up that one could
 learn what other commands users use. They
 may have thought of some tricks you may not have:
 
 # find / -name .bash_history -perm -004 -print >o 2>e &
 
 
 NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.
 
 LAST 5 TIPS
 4545
 - FIND THE HOG
 4544
 - KEEP THE USERS OFF WITH NOLOGIN
 4543
 - KILL A USER, IN THE UNIX SENSE
 4542
 - JUST THE DIRECTORIES
 4541
 - LOCK THAT FILE DOWN
 I want to 
 SUBSCRIBE
 and get a UGU Tip everyday.
 I want to 
 UNSUBSCRIBE
 and NOT get a UGU Tip everyday.
 If you have a UNIX TIP let us know, we just may use it:
(All tips become the property of the Unix Guru Universe)
 |  |  
                 |  |  
                 |   Copyright 1994-2024 Unix Guru Universe 
 |  |  |  |  |