리눅스 zcat

Jmnote bot (토론 | 기여)님의 2021년 12월 27일 (월) 11:26 판 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))

1 개요

zcat
/bin/zcat
  • gzip 압축 파일 보는 명령어
  • gzip 패키지에 포함되어 있다.
  • 압축된 상태에서 변경없이 파일 내용을 조회할 수 있어 편리하다.

2 실습

[root@zetawiki ~]# cat 1.txt
hello
[root@zetawiki ~]# gzip 1.txt
[root@zetawiki ~]# zcat 1.txt.gz
hello
[root@zetawiki ~]# gzip -d -c 1.txt.gz
hello
→ zcat은 gzip -d -c 와 동일하다.

3 같이 보기

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