Linux [CentOS] unzip 사용하기
페이지 정보
본문
리눅스에서 zip 파일을 풀 수 있습니다.
1. 설치 확인
[root@zetawiki ~]# unzip
-bash: unzip: command not found
[root@zetawiki ~]# rpm -qa | grep unzip
[root@zetawiki ~]# yum list unzip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* epel: ftp.riken.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jp
* webtatic: sp.repo.webtatic.com
Installed Packages
unzip.x86_64 6.0-16.el7 @base
[root@localhost ~]#
[root@hub ~]#
2. yum 으로 설치
[root@zetawiki ~]# yum install unzip
... (생략)
======================================================================
Package Arch Version Repository Size
======================================================================
Installing:
unzip x86_64 6.0-16.el7 base 149 k
Transaction Summary
======================================================================
Install 1 Package(s)
Total download size: 149 k
Installed size: 313 k
Is this ok [y/N]: y
...
Installed:
unzip.x86_64 0:6.0-16.el7
Complete!
3. 설치 확인
[root@localhost ~]# unzip
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
...
[root@localhost ~]#
[root@localhost ~]# rpm -qa | grep unzip
unzip-6.0-16.el7.x86_64
[root@localhost public_html]# yum list unzip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* epel: ftp.riken.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jp
* webtatic: sp.repo.webtatic.com
Installed Packages
unzip.x86_64 6.0-16.el7 @base
4. 사용방법
4-1. 현재 폴더에 풀기
[root@localhost ~]# unzip 압축파일.zip
4-2. 하위 폴더에 풀기
[root@localhost ~]# mkdir 폴더명
[root@localhost ~]# unzip 압축파일.zip -d ./폴더명
참고자료
https://zetawiki.com/wiki/CentOS_unzip_설치
https://zetawiki.com/wiki/리눅스_zip_파일_압축풀기_unzip
1. 설치 확인
[root@zetawiki ~]# unzip
-bash: unzip: command not found
[root@zetawiki ~]# rpm -qa | grep unzip
[root@zetawiki ~]# yum list unzip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* epel: ftp.riken.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jp
* webtatic: sp.repo.webtatic.com
Installed Packages
unzip.x86_64 6.0-16.el7 @base
[root@localhost ~]#
[root@hub ~]#
2. yum 으로 설치
[root@zetawiki ~]# yum install unzip
... (생략)
======================================================================
Package Arch Version Repository Size
======================================================================
Installing:
unzip x86_64 6.0-16.el7 base 149 k
Transaction Summary
======================================================================
Install 1 Package(s)
Total download size: 149 k
Installed size: 313 k
Is this ok [y/N]: y
...
Installed:
unzip.x86_64 0:6.0-16.el7
Complete!
3. 설치 확인
[root@localhost ~]# unzip
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
...
[root@localhost ~]#
[root@localhost ~]# rpm -qa | grep unzip
unzip-6.0-16.el7.x86_64
[root@localhost public_html]# yum list unzip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.riken.jp
* epel: ftp.riken.jp
* extras: ftp.riken.jp
* updates: ftp.riken.jp
* webtatic: sp.repo.webtatic.com
Installed Packages
unzip.x86_64 6.0-16.el7 @base
4. 사용방법
4-1. 현재 폴더에 풀기
[root@localhost ~]# unzip 압축파일.zip
4-2. 하위 폴더에 풀기
[root@localhost ~]# mkdir 폴더명
[root@localhost ~]# unzip 압축파일.zip -d ./폴더명
참고자료
https://zetawiki.com/wiki/CentOS_unzip_설치
https://zetawiki.com/wiki/리눅스_zip_파일_압축풀기_unzip
댓글목록
등록된 댓글이 없습니다.