Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'The find command' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
The find command
Authored by: Brock Lee on Oct 17, '03 11:45:26AM
I don't know how many people are familiar with *nix's find command, but I thought I'd offer some tips here.

The following command would find all files modified within 24 hours:

sudo find / -mtime -1

The third item on the command-line (/ in the example) is the directory to search within and below. The slash represents the root directory and will cause everything to be searched.

The -mtime item on the command-line means the search is being done based on modification time.

The final item on the command line (-1 in the example) means less than one day. Days are defined as 24-hour blocks and make no reference to midnight. Of course +2 would mean more than two days ago, and so forth.

[ Reply to This | # ]
Pipe results into more
Authored by: matx666 on Oct 17, '03 01:14:03PM

tack on an extra

| more

to see results by the screenful

or redirect into a txt file

> changes.txt



[ Reply to This | # ]