강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

compress로 압축된 압축파일을 해제하는 uncompress

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

compress로 압축된 압축파일을 해제하는 uncompress

 

uncompress는 압축유틸리티인 compress로 압축된 파일을 풀 때 사용하는 압축해제 프로그램입니다.  , compress로 압축되어있는 압축파일에는 *.Z라는 확장자가 붙어 있습니다.  따라서 uncompress로 압축을 해제하실 때에는 compress로 압축되어있는 *.Z파일을 대상으로 하셔야합니다.

 

uncompress의 간단한 사용법을 정리하면 다음과 같습니다.

[root@www dir]# uncompress 파일명
[root@www dir]# uncompress *
[root@www dir]# uncompress *.Z
[root@www dir]# uncompress index.*

 

위의 예는 간단히 나타낸 것이지만 uncompress를 사용하는 대부분의 사용형식입니다.  이어지는 예들을 보시기 바랍니다.

 

다음의 예는 compress로 압축하여 uncompress로 압축을 해제하는 가장 간단한 예입니다.  압축을 할 때에는 다음과 같이 "compress 파일명"이라고 하면 됩니다.   다음은 textfile을 압축한 예입니다. 

[root@www dir]# ls -l
total 32
-rw-r--r--    1 root     root        29646 Sep 20 18:20 textfile
[root@www dir]#
[root@www dir]# compress textfile
[root@www dir]#
[root@www dir]# ls -l
total 8
-rw-r--r--    1 root     root         6970 Sep 20 18:20 textfile.Z
[root@www dir]#


위의 예는 textfile을 압축 하였습니다.  textfile파일이 압축되어 textfile.Z가 생성이 된 것입니다.  이제 압축된 파일 textfile.Z 풀어 보겠습니다.

[root@www dir]# uncompress textfile.Z
[root@www dir]#
[root@www dir]# ls -l
total 32
-rw-r--r--    1 root     root        29646 Sep 20 18:20 textfile
[root@www dir]#

 

위와 같이 간단히 textfile.Z파일을 풀어 보았습니다.

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,032 명
  • 현재 강좌수 :  35,773 개
  • 현재 접속자 :  253 명