I am trying to list the directories (but not files) older than x days. I used below command to do it. But it is listing directories and files. Could anyone help me in resolving it? Thanks.
find /path/to/base/dir/* -type d -ctime +10 -exec ls {} \;
I am trying to list the directories (but not files) older than x days. I used below command to do it. But it is listing directories and files. Could anyone help me in resolving it? Thanks.
find /path/to/base/dir/* -type d -ctime +10 -exec ls {} \;
First to test if all is alright :
When all is ok :
Explanations :