Last 10 modified files...
Loïc Grenié
loic.grenie at gmail.com
Thu Feb 24 10:48:06 UTC 2011
2011/2/24 Tony Pursell <ajp at princeswalk.fsnet.co.uk>:
> On Thu, 2011-02-24 at 09:16 +0100, Loïc Grenié wrote:
>> 2011/2/24 Sandy Harris <sandyinchina at gmail.com>:
>> > On Thu, Feb 24, 2011 at 2:53 PM, Ashim Kapoor <ashimkapoor at gmail.com> wrote:
>> >
>> >> is there a way to see the last 10 modified files on my computer
>> >
>> > Have a look at the man page for find(1). That will at least let you
>> > find everything named *.txt that was saved in a certain time interval.
>> >
>> > You might also try a pipeline, joining commands with | symbol so
>> > the output of one becomes input to the the next. ls -lR should
>> > give a long list (R is recursive, l is long) of all your files, pipe that
>> > to sort(1) with the right options (need a man page again) to sort by
>>
>> find ~ -type f -print0 | xargs -0 ls -ltr | tail -10
>>
>> (might last a long time and it might not work if you have too many
>> files)
>>
>> Loïc
>>
>
> @ Ashim. Or you could just go Places > Search for Files and use Select
> more options and add Date modified more then/less than rules.
>
> @Loic and Sandy. I appreciate the technical answers but I feel that we
> should also be promoting the facilities in the UI. CLI answers don't
> give the impression of an easy to use OS that can replace Windows.
This mailing list is "Ubuntu user technical support...". Moreover I
can only give the answers I know: I really don't know how to look
for the 10 newer files in a GUI (GUIs are usually limited to a single
directory and I'm an old timer that types a lot faster than he clicks).
In the end, I'm not trying to "give the impression of an easy to use
OS that can replace Windows", just trying to answer the question.
Sorry !
Loïc
More information about the ubuntu-users
mailing list