With the find I can display directory names with several levels. The following command displays all directories in the /var path with a depth of 2:
find /var -maxdepth 2 -type d;
Result:
/var /var/log /var/log/sssd /var/log/samba /var/log/audit /var/log/ConsoleKit /var/log/gdm /var/log/sa
With the stat command, I can find the modified date time:
stat /var/log/samba | grep 'Modify:'
Result:
Modify: 2014-01-02 11:21:27.762346214 -0800
Is there a way to combine the two commands so that the directories are listed with a modified date time?
command-line linux grep find stat
Purres Jan 02 '14 at 10:21 2014-01-02 22:21
source share