I'm looking for a single command to list all files recursively from a given directory along with its modified time. It would also be nice if it can produce output in a tree-like format as produced by tree command.
NOTE: I'm running Red Hat Enterprise Linux Server release 5.
EDIT: The option -D
of tree command prints only the date part of the last modification time for past years, though it display date with time for current year. Here, in this case, I'm expecting to print date with time for past years as well.
On my CentOS, Gentoo, ...
-D
option is already showed in minutes:This command lists recursively all files in a given directory with their full modification time:
There's no
tree
-like output inls
but this is pretty close.perhaps this could be a starting point for your solution: