Find
Command:
#
find /usr/share/icons -name .png (only .png search)
#
find /usr/share/icons -name *.png (regular expression is used)
#
find -user liton -not -group liton (user liton but group is not liton)
#
find /home -user liton -o -user user2 (user liton or user user2)
#
find /home -not \( -user liton -o -user user2 \) (not user liton or user user2,must be space before - and after user
name)
#
find / -name "*.png" -not user root ( find those png file whose user
is not root)
#
find / -name "*.png" -user root -mtime 12
#
find -perm 744 (Exact Match)
#
find -perm +222 (Matches if anyone can write)
#
find -perm -222 (Matches if everyone can write)
#
find /usr -size 1024k (Exact 1024)
#
find /usr -size +1024k (Greater than 1024)
#
find /usr -size -1024k (Less than size 1024)
#
find -size +102400k -ok gzip {} \; (find 100M file or Folder and then compress
those file/folder)
#
find -name "*.conf" -exec cp {} \mnt \;