How can I run the ls command with all its options and list all files in directories recursively and sort it based on last modification times?
ie ls -lth on all files in directories recursively
|
How can I run the ie ls -lth on all files in directories recursively
| |||
|
feedback
|
|
First, which flavor of unix are you using? Systems based on BSD will have a different option set for Second, http://unixhelp.ed.ac.uk/CGI/man-cgi?ls lists a The trick is to verify that your flavor of *nix uses a version of | |||
|
feedback
|
|
It sounds like you want a global sort, rather than a per-directory sort like you would get with If the total number of files is not too large, this can be accomplished using the
or alternatively
(On some older systems, the Caveat: If the number of files that you are sorting is large then there may be too many to list as arguments to a single | |||
|
feedback
|