List files by last edited date
bash, shell
Solution
You can use:
ls -Rt
where `-R` means recursive (include subdirectories) and `-t` means "sort by last modification date".
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.
Problem
I have a directory: `/home/user/` How can I list every file in this directory (including those in sub directories) and order them by the date that they were last modified?