조회 수 67885 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

압축을 풀려면,

tar zxvf [파일이름]

새로운 압축파일을 만들려면,

tar zcvf [파일이름][압축할 파일 이름들 ...]

tar 옵션을 zxvf 그리고 zcvf 로 외우시면 편리합니다. 이유는 키보드 자판을 보시면 zxcv 로 되어 있기 때문에 zxcvf 순서로 외우 두시고 새로 압축을 만들 때에는 c 를, 압축을 풀 때에는 x를 사용한다고 기억하시면 tar 사용하시기가 편리합니다.

출처 : FALINUX Forum


option

-z, --gzip, --ungzip : gzip으로 압축 또는 압축해제 할때 사용한다.

-v, --verbose : tar 명령어 실행 과정을 자세히 보고 싶을때 사용한다.

-f, --file [HOSTNAME:] F : tar 명령어를 이용할 때 반드시 사용해야 한다. (default)

-x, --extract, --get : tar 파일로 묶여있는 것을 해제할때 사용한다.

-c, --create : tar 파일을 생성할 때 사용한다.

-C, --directory DIR : tar 파일을 해제할 때, 해제할 위치를 지정하는데 사용한다.


example

tar -cvf test.tar ./

현재 디렉토리의 내용들은 전부 test.tar로 압축한다.

tar -cvf test.tar test*

현재 디렉토리에서 test~~(ex, test1, test2.. ) 등의 파일들을 test.tar로 압축한다.

tar -xvf test.tar

현재 디렉토리에 test.tar 파일을 푼다.

tar -xvf test.tar -C temp

temp라는 디렉토리안에 test.tar 파일을 푼다. (temp 디렉토리는 압축풀기전에 생성되어 있어야 한다.)

?

List of Articles
번호 제목 날짜 조회 수
4 1267 : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' 에러명 select count(*) as cnt from g4_point where mb_id = 'admin' and po_rel_table = '01_1' and po_rel_id = '1' and po_rel_action = '쓰기' 1267 : Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (u... 2012.02.21 93026
3 (Owncloud) Error while trying to create admin user: An exception occured in driver: could not find driver 에러 해결 (Owncloud) Error while trying to create admin user: An exception occured in driver: could not find driver 에러 해결 php 확장 모듈에서 php_pdo_mysql.dll 추가 해 주면 됩니다. 테스트 환경 windows7 // auto... 2015.02.19 4098
2 #145 - Table './DB/xe_documents' is marked as crashed and should be repaired phpmyadmin 에서 #145 - Table './DB/xe_documents' is marked as crashed and should be repaired centos mysqld.log 에서 [ERROR] /usr/local/mysql/libexec/mysqld: Table './DB/xe_documents' is marked as crash... file 2014.06.22 16961
1 #1040 - Too many connections // XE cannot connect to DB. 이런 에러 나올때 #1040 - Too many connections XE cannot connect to DB. 이런 에러 나올때 mysql 에서 max_connection 제한때문에 일어나는 에러 현재 msyql max_connetion 확인 #mysqladmin -u root -p variables | grep max_conne... 2013.11.20 36209
Board Pagination Prev 1 2 3 4 Next
/ 4