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]#
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
346 | 데비안 기본 라이브러리 설치 | 호스트웨이 | 2008.06.03 | 33934 |
345 | SFTP 퍼미션 조정 및 chroot 설정으로 상위폴더 접근 제한하기 | 호스트웨이 | 2015.10.29 | 33556 |
344 | yum 으로 패키지그룹 관리하기 | jook | 2009.04.22 | 33490 |
343 | 현재 설치된 메모리 정보를 확인하는 방법 | 호스트웨이 | 2012.03.30 | 33281 |
342 | SELinux 제어 방법 | 호스트웨이 | 2008.05.19 | 33040 |
341 | Privilege separation user sshd does not exist 메세지 | sylee | 2008.06.04 | 32781 |
340 | 리눅스에서 NTFS 읽고 쓰기 | 호스트웨이 | 2009.04.18 | 32740 |
339 | 가장 안정적인 NTP 서버 주소 | 호스트웨이 | 2012.07.20 | 32554 |
338 | dmidecode 명령 | jook | 2009.10.30 | 32449 |
337 | performance of JFS | HOSTWAY | 2008.06.04 | 32294 |
336 | mii-tool로 랜카드 속도와 duplex모드 조절하기 | 호스트웨이 | 2008.05.19 | 32048 |
335 | Quota 설정하기 | 호스트웨이 | 2008.05.19 | 32039 |
334 | 리눅스에서 wget 명령어의 사용 방법 | 호스트웨이 | 2012.06.01 | 31997 |
333 | vmstat 사용법 | sylee | 2008.05.15 | 31949 |
332 | LVM 명령 요약 | 호스트웨이 | 2012.09.06 | 31891 |
331 | ssh 포트 변경 방법 | sylee | 2008.05.14 | 31770 |
330 | fstab 손상으로 / 파티션이 Read-Only 상태일 때 Remount 하는 방법 | 호스트웨이 | 2012.10.05 | 31756 |
» | 파일 수정일자 변경하기 | jook | 2008.05.28 | 31687 |
328 | 터미널 접속후 자동 로그아웃 설정하기 | 호스트웨이 | 2008.05.19 | 31476 |
327 | 부하 테스트 - 1편 / 시스템 하드웨어 stress tool | 호스트웨이 | 2012.04.20 | 31385 |