차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| tech:touch [2023/07/30 16:10] – V_L | tech:touch [2023/07/30 16:31] (현재) – V_L | ||
|---|---|---|---|
| 줄 11: | 줄 11: | ||
| 리눅스에는 세 종류의 타임스탬프가 있다. | 리눅스에는 세 종류의 타임스탬프가 있다. | ||
| - | * atime : 최종 | + | * Access time : 어떤 앱에 의해 마지막으로 |
| - | * ctime : 최종 상태 변경 | + | * Modification time : 마지막으로 내용이 수정된 |
| - | * mtime : 최종 수정 | + | * Changed time : 마지막으로 파일의 메타데이타, |
| - | * | + | * Birth time |
| < | < | ||
| 줄 23: | 줄 23: | ||
| | | ||
| </ | </ | ||
| + | stat 명령어로 볼 수 있다. | ||
| + | |||
| + | |||
| + | $ touch [파일명] | ||
| + | 별다른 옵션이 없다면 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. | ||
| + | |||