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]#
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
66 | 폴더에 다수의 파일을 삭제하기 | HOSTWAY | 2009.02.19 | 29439 |
65 | ethtool | 호스트웨이 | 2008.05.19 | 29609 |
64 | script 명령어 이용하기 | 호스트웨이 | 2008.05.19 | 30000 |
63 | ramdisk 사용하기 | 호스트웨이 | 2008.05.19 | 30073 |
62 | Login 실패시 계정 잠그기 및 PAM 설정 | 호스트웨이 | 2016.01.04 | 30144 |
61 | SSH(Secure shell) 사용하기 | 호스트웨이 | 2008.05.19 | 30532 |
60 | fstab 손상으로 / 파티션이 Read-Only 상태일 때 Remount 하는 방법 | 호스트웨이 | 2012.10.05 | 30726 |
59 | 부하 테스트 - 1편 / 시스템 하드웨어 stress tool | 호스트웨이 | 2012.04.20 | 30879 |
58 | 터미널 접속후 자동 로그아웃 설정하기 | 호스트웨이 | 2008.05.19 | 31201 |
57 | mii-tool로 랜카드 속도와 duplex모드 조절하기 | 호스트웨이 | 2008.05.19 | 31208 |
» | 파일 수정일자 변경하기 | jook | 2008.05.28 | 31231 |
55 | ssh 포트 변경 방법 | sylee | 2008.05.14 | 31257 |
54 | LVM 명령 요약 | 호스트웨이 | 2012.09.06 | 31311 |
53 | 리눅스에서 wget 명령어의 사용 방법 | 호스트웨이 | 2012.06.01 | 31369 |
52 | vmstat 사용법 | sylee | 2008.05.15 | 31446 |
51 | Quota 설정하기 | 호스트웨이 | 2008.05.19 | 31601 |
50 | SFTP 퍼미션 조정 및 chroot 설정으로 상위폴더 접근 제한하기 | 호스트웨이 | 2015.10.29 | 31766 |
49 | performance of JFS | HOSTWAY | 2008.06.04 | 31822 |
48 | 가장 안정적인 NTP 서버 주소 | 호스트웨이 | 2012.07.20 | 32124 |
47 | dmidecode 명령 | jook | 2009.10.30 | 32171 |