찾기 명령에서 ctime 1과 ctime +1의 차이점 결과가 다시 나타나지 않습니다. find . -name

다음 명령을 실행하면

find . -name "*.jar" -type f -ctime +1

내가 실행하면 결과가 다시 나타나지 않습니다.

find . -name "*.jar" -type f -ctime 1

결과를 얻습니다.



답변

이는 디렉토리의 모든 jar 파일이 48 시간 전에 상태가 변경되었음을 의미합니다.

상해

find매뉴얼 페이지 에 따르면

-ctime n
    File's status was last changed 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.

그리고 다른 곳에서는 …

+n for greater than n

따라서 -ctime +1최소 48 시간 전에 파일 상태가 변경되어야합니다.


답변