"리눅스 압축파일 내부 파일목록 보기"의 두 판 사이의 차이

(새 문서: ;list the contents of a tar or tgz file ;압축파일 내부 파일목록 보기 ;tar, tgz, bz2 내부 파일목록 보기 ==방법== ;tar <source lang='bash'> tar tvf 파일명.tar ...)
 
9번째 줄: 9번째 줄:
</source>
</source>


;tar
;tgz
<source lang='bash'>
<source lang='bash'>
tar ztvf 파일명.tgz
tar ztvf 파일명.tgz

2014년 3월 24일 (월) 22:36 판

list the contents of a tar or tgz file
압축파일 내부 파일목록 보기
tar, tgz, bz2 내부 파일목록 보기

1 방법

tar
Bash
Copy
tar tvf 파일명.tar
tgz
Bash
Copy
tar ztvf 파일명.tgz
tar ztvf 파일명.tar.gz
bz2
Bash
Copy
tar tvf 파일명.bz2

2 실습

bat
Copy
[root@jmnote test]# echo hello > hello.txt
[root@jmnote test]# echo world > world.txt
[root@jmnote test]# tar cvf 1.tar *.txt
hello.txt
world.txt
bat
Copy
[root@jmnote test]# tar tvf 1.tar
-rw-r--r-- root/root         6 2014-03-24 22:32:17 hello.txt
-rw-r--r-- root/root         6 2014-03-24 22:32:22 world.txt

3 참고 자료