开发者

long format's file+date+rights

How can I list in long format all files (located in 开发者_运维百科a directory ) which belong to me (rights) and modified more than 7 days?


Take a look at the "find" command, it has many options, including creation time, access time, modified time, and you can run commands on any files it finds etc.


Recursively find files of user "maalem", modified more than 7 days ago, list in long format

find . -type f -user maalem -mtime +7 -exec ls -ld {} +


find will help you.

You just asked just a little bit earlier a similar question, maybe you should have closer look at the find man-page

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜