ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • tar 압축
    Flower in my ops/Linux 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 옵션 추가

    'Flower in my ops > Linux' 카테고리의 다른 글

    find  (0) 2015.05.12
    iptalbes  (0) 2015.05.08
    grep  (0) 2015.04.30
    which, whereis, locate  (0) 2015.04.30
    서버 용량 확인 [df, du]  (0) 2015.04.30

    댓글

Designed by Tistory.