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

잔글 (로봇: 자동으로 텍스트 교체 (-[root@jmnote +[root@zetawiki))
잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
21번째 줄: 21번째 줄:


==실습==
==실습==
<source lang='cli'>
<source lang='console'>
[root@zetawiki ~]# echo hello > hello.txt
[root@zetawiki ~]# echo hello > hello.txt
[root@zetawiki ~]# echo world > world.txt
[root@zetawiki ~]# echo world > world.txt
28번째 줄: 28번째 줄:
world.txt
world.txt
</source>
</source>
<source lang='cli'>
<source lang='console'>
[root@zetawiki ~]# tar tvf temp.tar
[root@zetawiki ~]# tar tvf temp.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:17 hello.txt

2016년 3월 29일 (화) 13:35 판

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

1 방법

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

2 실습

[root@zetawiki ~]# echo hello > hello.txt
[root@zetawiki ~]# echo world > world.txt
[root@zetawiki ~]# tar cvf temp.tar *.txt
hello.txt
world.txt
[root@zetawiki ~]# tar tvf temp.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 같이 보기

4 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}