Shell command to get directory with least access date/time

前端 未结 6 1455
无人共我
无人共我 2021-01-29 01:45

Is there any sort option available in find command to get directory with least access date/time

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-29 02:19

    This sound like more of a job for ls:

    ls -ultd *|grep ^d
    

    The problem with using find, at least on my system (cygwin/bash), is that find accesses the dirs, so all access-times result in current time, defeating your apparent purpose.

提交回复
热议问题