Find Command
Find Command
find details -name \*.txt # to search .txt files only in details directory (can add
multiple dir)
find . -iname "copy1.txt" # to search a file ignoring the case of the filename
find . -type f -name "*.txt" # to search in pwd all files of type .txt
find . -size -10M # to search in pwd all files of size less than 10MB
find . -size +1c -size -5M # to find files in pwd that are greater than 1 byte and
less than 5 MB
find . -atime -1 # to find files that were accessed in the last one day
find . -mtime -60 #finding files in pwd that were modified in the last hour
find . -atime -60 #finding files in pwd that were changed in the last hour
find . -ctime -60 #finding files in pwd that were accessed in the last hour
find /tmp -type f -name ".*" # to find in /tmp all hidden files