df and find command

 disk free commands:-

********************


#df  ---> display all filesystem info in blocks


#df -a  --> display all mounted filesystem info along with dummy filesystem


#df -h  --> display all filesystem info in human readable language


#df -k  --> display all FS info in KB's


#df -m    --> display all fs info in MB's


#df -T  --> display all FS info with its Filesystem type


#df -Th  ---> display FS info with its type in human readable language



find commands:-

**************


#find   .     -name   <filename>    --> to search for  a file in my PWD

                 

#find   /     -name   <filename>    --> to search for a file in / dir.


#find  /   -iname <filename>   --> to search for a file with ignoring cases

ex: #find / -iname  Zafar


#find /   -type f  <filename>   --> searching  a file with specific name

                     

#find / -type d  <dir name>   --> serach a dir with specific name


#find / -type f  -perm  644    ---> to search for a file with perm 644


#find / -type f -perm 644 | wc  -l   --> to have  a count of file with this perm 


#find / -type d  -perm  755   ---> to search for a dir with perm 755


#find / -type f -empty   ---> to search empty file in OS


#find / -type d -empty   --> to search empty dir in OS


#find / -user <username>  --> to search for the files/dir of the perticular user

ex: #find / -user zafar


#find / -type f -name "za*"   --> to search for all the files starting "za*"

















Comments

Popular posts from this blog

AIX migration using alt_disk method

HMC - List the Port VLAN IDs and Additional VLAN IDs ( tagged ) associated with the NICs of a LPAR.