차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
tech:touch [2023/07/30 16:11] V_Ltech:touch [2023/07/30 16:31] (현재) V_L
줄 11: 줄 11:
 리눅스에는 세 종류의 타임스탬프가 있다. 리눅스에는 세 종류의 타임스탬프가 있다.
  
-  * atime 최종 접근 시간 (access time) +  * Access time 어떤 앱에 의해 마지막으로 접근된 시간   
-  * ctime 최종 상태 변경 시간 (change time) +  * Modification time 마지막으로 내용이 수정된 시간   
-  * mtime 최종 수정 시간 (modify time) +  * Changed time 마지막으로 파일의 메타데이타, 특성, 내용이 변경된 시간  
-  *       : 만들어진 시간 (birth)+  * Birth time  파일이 만들어진 시간  
  
 <file> <file>
줄 23: 줄 23:
  Birth: 2023-07-21 23:40:39.805987832 +0900  Birth: 2023-07-21 23:40:39.805987832 +0900
 </file> </file>
 +stat 명령어로 볼 수 있다.
  
  
   $ touch [파일명]   $ touch [파일명]
 별다른 옵션이 없다면 atime, ctime, mtime 모두 변경된다. 별다른 옵션이 없다면 atime, ctime, mtime 모두 변경된다.
 +
 +
 +  * -a Used to change only the access time.
 +  * -m Used to change only the modification time.
 +  * -d Used to update the access and modification times.
 +  * -c Do not create a new file, if the does not exist.
 +  * -r Used to use the access and modification times of another file.
 +  * -t Used to create a file with a specified time.