Gentoo Wiki


This article is part of the Tips & Tricks series.
Terminals / Shells Network X Window System Portage System Filesystems Kernel Other

A quick way to find recently changed files is to pass the -FlAt flags to ls. Combined with head, this command can give you a quick overview of recently modified files in a directory. The -F option distinguishes certain types of files and directories by adding extra characters (such as '/' for directories, '*' for executables, etc.). The -t option sorts the entries by the date they were last modified. Piping the output to head shows (by default) only 10 entries.

bash$ ls -FlAt | head

Or you can use this and just read backwards:

bash$ ls -lart

For more information, see man ls.

Also try:

find / -mtime 1

to find all files on your system modified within the last twenty-four hours

Try this one as well:

find / -daystart -mtime 0

to find all files since midnight

. See man find.


Originally imported from GWN.

Retrieved from ""

Last modified: Fri, 05 Sep 2008 23:12:00 +0000 Hits: 12,880