16.9 An Alias to List Recently Changed FilesLooking for a recently changed file? Not sure of the name? Trying to do this in a directory with lots of files? Try the lr alias:
alias lr "ls -lagFqt \!* | head" The alias takes advantage of the -t option ( 16.2 ) to ls , so that recent files can float to the top of the listing. head ( 25.20 ) shows just the first ten lines. A simple lr in my home directory gives me:
bermuda:home/dansmith :-) You can also give a wildcarded pattern, in order to narrow the search. For example, here's the command to show me the dot files that have changed lately:
- |
|