반응형

=== 1일 이내에 수정된 파일

find ./* -mtime -1 (현재 폴더 미포함)
find . -mtime -1 (현재 폴더 포함)


=== 1일 이내에 접근된 파일

find ./* -atime -1


=== 1일 이내에 상태가 변경된 파일

find ./* -ctime -1



=== man 페이지 내용 ===

-atime n

              File  was  last  accessed n*24 hours ago.  When find figures out how many 24-hour periods ago

              the file was last accessed, any fractional part is ignored, so to match -atime +1, a file has

              to have been accessed at least two days ago.


-ctime n

              File's status was last changed n*24 hours ago.  See the comments for -atime to understand how

              rounding affects the interpretation of file status change times.


-mtime n

              File's  data was last modified n*24 hours ago.  See the comments for -atime to understand how

              rounding affects the interpretation of file modification times.

+ Recent posts