Unix - Find command examples
Article Number: 249 | Rating: Unrated | Last Updated: Fri, Jun 8, 2018 10:07 PM
Unix - Find command examples
Below are some find command examples on Unix OS.
#find <path> <option> <value>
#find /home/james/ -amin 10 ----File was last accessed n minutes ago.
#find /home/james/ -atime 2 ----File was last accessed 2*24 hours ago.
#find /home/james/ -cmin 3 ----Fileâs status was last changed 3 minutes ago.
#find /home/james/ -ctime 3 ----Fileâs status was last changed 3*24 hours ago.
#find /home/james/ -mmin 2 ----Fileâs data was last modified 2 minutes ago.
#find /home/james/ -mtime 2 ----Fileâs data was last modified 2*24 hours ago.
#find /home/james/ -size +10000k ----File larger than 10MB
#find /home/james/ -size -10000k ----File smaller than 10MB
#find /home/james/ -iname '*passwd*' ----File with pattern passwd in it's name
#find <path> <option> <value>
#find /home/james/ -amin 10 ----File was last accessed n minutes ago.
#find /home/james/ -atime 2 ----File was last accessed 2*24 hours ago.
#find /home/james/ -cmin 3 ----Fileâs status was last changed 3 minutes ago.
#find /home/james/ -ctime 3 ----Fileâs status was last changed 3*24 hours ago.
#find /home/james/ -mmin 2 ----Fileâs data was last modified 2 minutes ago.
#find /home/james/ -mtime 2 ----Fileâs data was last modified 2*24 hours ago.
#find /home/james/ -size +10000k ----File larger than 10MB
#find /home/james/ -size -10000k ----File smaller than 10MB
#find /home/james/ -iname '*passwd*' ----File with pattern passwd in it's name