꽃선생 2015. 4. 30. 11:11

tar.gz

 

옵션

-c : 파일 묶기

-x : 파일 풀기

-v : 화면에 상태 표신

-f : 파일 이름 지정

-z : gz으로 압축/해제

 

tar.bz2

 

-j : bz2로 압축/해제

 

 

[error]

tar: time stamp s in the future

 

tar -xzvf로 압축을 풀면

 

tar: time stamp s in the future <-- 에러가 나온다.

시간이 과거이기 때문

해결방법

 

1) 시스템 시간을 동기화

 

/usr/bin/rdate -s time.bora.net && /sbin/clock -w > /dev/null 2>&1

 

2)tar 파일에 m 옵션 추가