|
|
|
|
|

월간 인기 게시물

게시물 57건
   
시간별 수정된 파일검색 - mtime 계산
글쓴이 : 최고관리자 날짜 : 2010-04-01 (목) 14:44 조회 : 6859
글주소 :
                          

When specifying time with find options such as -mmin (minutes) or -mtime (24 hour periods, starting from now), you can specify a number n to mean exactly n, -n to mean less than n, and +n to mean more than n.

Fractional 24-hour periods are truncated!  That means that find -mtime +1 says to match files modified two or more days ago.


For example:

find . -mtime 0   # find files modified between now and 1 day ago
                  # (i.e., within the past 24 hours)
find . -mtime -1  # find files modified less than 1 day ago
                  # (i.e., within the past 24 hours, as before)
find . -mtime 1   # find files modified between 24 and 48 hours ago
find . -mtime +1  # find files modified more than 48 hours ago

find . -mmin +5 -mmin -10 # find files modifed between
                          # 6 and 9 minutes ago

※ 24시간 이내에 수정된 .php 확장자를 찾는경우
find . -name '*.php' -mtime -1 -print


※ 24시간 이내에 수정된 모든 파일을 찾는 경우
find . -mtime -1 -print


이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.