On a Unix server (Solaris) I would like to have a list of file like the output of ls -lrtR (i.e. all the files of a folder, included the ones in the subfolders, with the indication of their path and date), but listing only the files older than a certain date (e.g. < 2017).


Is find utility available on your Solaris server ?

If so, then simply use find <path> -mtime +365 -ls or find <path> -mtime +365 -exec ls <options of your choice> {} \; for finding files older than 365 days.

  • It works but the output doesn't list the date of the file. – CarLaTeX Oct 22 '19 at 10:08
  • I edited my question to specify it – CarLaTeX Oct 22 '19 at 10:15
  • So i edited my answer ;-) – binarym Oct 22 '19 at 12:21
  • Perfect, thanks! – CarLaTeX Oct 22 '19 at 13:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.