Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The linux locate command is great at finding files quicky.

My question: how can we use the locate command so that the results are returned in date/time order?

share|improve this question

1 Answer

How about:

ls -td $(locate something)

or

ls -td1 $(locate something)
share|improve this answer
Maybe a -d would be handy, too. – choroba Aug 27 '12 at 11:47
@choroba: good point, I'll update the answer. – RedGrittyBrick Aug 27 '12 at 11:49

Your Answer

 
discard

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

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