So the output would be either:
Most recent at the top OR most recent at the bottom - giving the укради when the contents of the working directory were modified?
Apparently, ls -t
is supposed to give most recent at the top, which it does...
But I have не восходил when any of the file/folders were modified; which is rather annoying.
Is it possible to производит an output which lists the поля in modified order, and also gives the украдите at which they were modified? I can't seem to find the option in man
...
Проверьте -l
опция ls
:
ls -lt
Аккуратный способ использовать stat
:
stat -c '%y - %n' * | sort -t'-' -k1,1
Реверс:
stat -c '%y - %n' * | sort -r -t'-' -k1,1
%y
даст время изменения в человекочитаемой форме, %n
даст имя файла
sort
, отсортирует значения только согласно modiication времени