开发者

Find files created in a particular ssh session or date

开发者 https://www.devze.com 2023-01-04 18:35 出处:网络
How can 开发者_JS百科I find all the files that were created by a particular session using ssh? Or search for files that were created/modified on a particular date?You can use the find command with th

How can 开发者_JS百科I find all the files that were created by a particular session using ssh?

Or search for files that were created/modified on a particular date?


You can use the find command with the various switches of -mtime -ctime and -atime

Quoted from this link: http://www.softpanorama.org/Tools/Find/selecting_files_by_age.shtml

To find html files that have been modified in the last seven 24-hour periods (days), I can use -mtime with the argument -7 (include the hyphen):

find . -mtime -7 -name "*.html" -print


You can list the open files on your system with lsof -n. To find files updated in the last 5 minutes find . -cmin -5.

0

精彩评论

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