Descending list ordered by file modification time
Posted
by
LanceBaynes
on Super User
See other posts from Super User
or by LanceBaynes
Published on 2011-02-28T15:38:01Z
Indexed on
2012/11/12
23:04 UTC
Read the original article
Hit count: 285
How can I generate a list of files in a directory [for example, "/mnt/hdd/PUB/"] ordered by the files modification time? [in descending order, the oldest modified file is at the lists end]
ls -A -lRt
would be great: https://pastebin.com/raw.php?i=AzuSVmrJ
But if a file is changed in a directory, it lists the full directory, so the pastebined link isn't good [I don't want a list ordered by "directories", I need a "per file" ordered list]
OS: OpenWrt [no Perl -> not enough space for it :( + no "stat", or "file" command].
© Super User or respective owner