리눅스 gzip

Jmnote (토론 | 기여)님의 2019년 6월 23일 (일) 20:49 판 (→‎개요)

1 개요

리눅스 gzip
/bin/gzip

2 실습 1

testuser@localhost:~$ fallocate -l 1MB test.txt
testuser@localhost:~$ ll test.txt
-rw-rw-r-- 1 testuser testuser 1000000 Jun 23 20:45 test.txt
testuser@localhost:~$ gzip test.txt 
testuser@localhost:~$ ll test.*
-rw-rw-r-- 1 testuser testuser 1012 Jun 23 20:45 test.txt.gz
→ test.txt 파일이 text.txt.gz로 압축되고 원본은 삭제되었다.

3 실습 1

testuser@localhost:~$ fallocate -l 1MB test.txt
testuser@localhost:~$ ll test.txt
-rw-rw-r-- 1 testuser testuser 1000000 Jun 23 20:48 test.txt
testuser@localhost:~$ gzip test.txt 
testuser@localhost:~$ ll test.*
-rw-rw-r-- 1 testuser testuser 1000000 Jun 23 20:48 test.txt
-rw-rw-r-- 1 testuser testuser    1012 Jun 23 20:48 test.txt.gz
→ test.txt 파일이 text.txt.gz로 압축되고 원본은 그대로 있다.

4 같이 보기

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