2008.05.28 19:24
파일의 내용이 변경되거나 touch 명령을 사용했을때, 파일의 최종 수정 일자가 변경되게 된다.
아래와 같이 특정 파일의 최종 수정일자를 원하는대로 변경 할 수 있다.
[root@localhost root]# ls -l /etc/hosts
-rw-r--r-- 1 root root 350 10월 23 2007 /etc/hosts <--- 파일 수정일자가 2007년 10월 23일로 설정되어 있음.
[root@localhost root]# touch /etc/hosts
[root@localhost root]# ls -l /etc/hosts
-rw-r--r-- 1 root root 350 5월 28 09:59 /etc/hosts <--- touch 명령으로 입력한 후 파일 수정일자가 현재 날짜로 변경됨.
[root@localhost root]# touch -acm -t 200710241312.11 /etc/hosts
[root@localhost root]# ls -l /etc/hosts
-rw-r--r-- 1 root root 350 10월 24 2007 /etc/hosts <--- touch 에 옵션을 추가하여 2007년 10월 24일로 변경
[root@localhost root]#
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 366 | mii-tool로 랜카드 속도와 duplex모드 조절하기 | 호스트웨이 | 2008.05.19 | 32482 |
| 365 | awk 를 이용한 패턴 처리 | 호스트웨이 | 2008.05.19 | 25190 |
| 364 | 로그 관리 | 호스트웨이 | 2008.05.19 | 25673 |
| 363 | Network File System | 호스트웨이 | 2008.05.19 | 24313 |
| 362 | ethtool | 호스트웨이 | 2008.05.19 | 30420 |
| 361 | SSH(Secure shell) 사용하기 | 호스트웨이 | 2008.05.19 | 31162 |
| 360 | watch 로 시스템 모니터링 하기 | 호스트웨이 | 2008.05.19 | 26436 |
| 359 | ssh에서 일반계정들의 접속을 제한 하는 방법 | 호스트웨이 | 2008.05.19 | 30183 |
| 358 | shell 접속은 차단하고 ftp접속만 허용하기 | sylee | 2008.05.20 | 35086 |
| 357 | CGI 환경 테스트 | sylee | 2008.05.21 | 25331 |
| » | 파일 수정일자 변경하기 | jook | 2008.05.28 | 32058 |
| 355 | source rpm 을 사용하여 rpm 패키지 만들기 | jook | 2008.05.28 | 34939 |
| 354 | 데비안 기본 라이브러리 설치 | 호스트웨이 | 2008.06.03 | 34253 |
| 353 | Privilege separation user sshd does not exist 메세지 | sylee | 2008.06.04 | 33118 |
| 352 | performance of JFS | HOSTWAY | 2008.06.04 | 32630 |
| 351 | Kernel Parameters | HOSTWAY | 2008.06.04 | 50293 |
| 350 | atop like top | HOSTWAY | 2008.06.04 | 29073 |
| 349 | 많이 사용되는 리눅스 명령들 | sylee | 2008.06.11 | 29476 |
| 348 | 커널 파라미터 제어 | 호스트웨이 | 2008.06.25 | 37709 |
| 347 | ssh-key를 생성하여 서버에 패스워드 없이 접속하는 방법 | jook | 2008.06.25 | 45696 |