Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Apple server, and when I use ls -alFt

output shows:

"drwxrwxrwx   267 admin  www        9078 Mar 31  2010 3/"

and

"drwxrwxrwx   483 admin  www       16422 Jul  9 09:58 26/"

what is the real time?

I'm looking for older folders to move it, but I don't understand the output format.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

ls only shows the creation time if the file was recently made (6 months, according to man ls), otherwise it shows the year. If you want to see full information on a file or directory use stat. It's manpage has examples on how to combine stat with sort to order things around by modification time.

What you probably want, though, is find . -mtime +365d with a suitable age in there in place of 365 days.

share|improve this answer

cmiiw

 -t      Sort by time modified (most recently modified first) before sorting the operands by lexicographical order.

"drwxrwxrwx 267 admin www 9078 Mar 31 2010 3/" <== older

"drwxrwxrwx 483 admin www 16422 Jul 9 09:58 26/" <== newer

if you using ls -alFt, so the first line is the newest

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.