Unix - Find command examples

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
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
java Simple Java JDBC Program To Execute SQL Select Query
Viewed 8598 times since Sun, Jan 9, 2022
O’Reilly’s CD bookshelf
Viewed 13308 times since Wed, Jun 27, 2018
Unix - eval command example
Viewed 2155 times since Fri, Jun 8, 2018
Transform XML to CSV Format | Unix String Pattern Manipulation The Ugly Way
Viewed 6137 times since Sun, Jan 9, 2022
Unix - Examples for grep command
Viewed 3254 times since Fri, Jun 8, 2018
java Simple Java JDBC Program To Execute SQL Update Statement
Viewed 14036 times since Sun, Jan 9, 2022
Display basic information about Physical Volumes
Viewed 3653 times since Sun, Jun 3, 2018
To do a quick check on the number of path present (does not mean all are Enabled] using for loop
Viewed 4175 times since Fri, Jun 8, 2018
Epoch & Unix Timestamp Conversion Tools
Viewed 63576 times since Fri, Jun 22, 2018
Convert CSV to JSON with bash script
Viewed 5419 times since Mon, Jan 20, 2020