Linux Scroll

Just another WordPress.com site

Find command

Find modified files:

find . -mtime 0   # find files modified recently

find . -mtime -1 # find files modified less than 1 day ago
find . -mtime 1 # find files modified between 24 and 48 hours ago
find . -mtime +1 # find files modified more than 2 days ago
find . -mmin +5 -mmin -10 # find files modified between 6 and 9 minutes ago

Find files owned by user alan:

find /home -user alan

Find files by name:

find / -name *ject

Find files by permission:

find / -perm 777

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: