I'm looking for a single command to list all files recursively from a given directory along with its modified time.
$ find /path/to/folder -type f -print0 | xargs -0 ls -l --time-style="+%F %T"
It would also be nice if it can produce output in a tree-like format as produced by tree command. In my case, precision upto minutes is enough.
Na minha opção CentOS, Gentoo, ... -D
já é mostrada em minutos:
$ tree -D
.
├── [Jul 26 14:41] LICENSE
├── [Jul 26 14:41] manifests
│ ├── [Oct 10 16:30] defines
│ │ └── [Jul 26 14:41] redis source.pp
│ └── [Jul 26 14:41] init.pp
├── [Jul 26 14:41] README
└── [Jul 26 14:41] templates
├── [Jul 26 14:41] redis.conf.erb
└── [Jul 26 14:41] redis-server.erb
3 directories, 6 files