Descending list ordered by file modification time

Posted by user62367 on Super User See other posts from Super User or by user62367
Published on 2011-02-28T15:38:01Z Indexed on 2011/02/28 23:27 UTC
Read the original article Hit count: 284

Filed under:
|

How can i generate a list of files in a directory [e.g.: "/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]
Thank you!

© Super User or respective owner

Related posts about linux

Related posts about openwrt