I have a directory: /home/user/
/home/user/
How can I list every file in this directory (including those in sub directories) and order them by the date that they we
You can use:
ls -Rt
where -R means recursive (include subdirectories) and -t means "sort by last modification date".
-R
-t
To see a list of files sorted by date modified, use:
ls -l -Rt
An alias can also be created to achieve this:
alias lt='ls -lht' lt
Where -h gives a more readable output.
-h