INFORMATICS

The Best

Przełącznik języka

Zaproś mnie na KAWE

Jeżeli podoba Ci się strona i chcesz wspomóc projekt!

Postaw mi kawę na buycoffee.to

This Site

Płatnik

CMS

Hardware

Uncategorised

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

2.png9.png0.png0.png3.png7.png4.png
Today47
Yesterday832
This week2510
This month20499
Total2900374

Visitor Info

  • IP: 3.145.47.253
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

5
Online

wtorek, 30 kwiecień 2024 01:55

How to Unzip zip files in CentOS

Gwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna
 

Installing unzip on CentOS 7:
On CentOS 7, the unzip package may not be installed by default. But it is available in the official package repository of CentOS 7. So it is very easy to install.

First update the YUM package repository cache with the following command:

#sudo yum makecache

Now install unzip with the following command:

sudo yum install unzip

check whether unzip works, run the following command:

unzip -v
 

Listing the Contents of the Zip file using unzip Command:
You can list all the files and directories stored inside a Zip file with the following command:

$ unzip -l app.zip

Extracting a Zip File using unzip Command:
You can extract a Zip file using the unzip command very easily.

To extract a Zip file into the current directory where the zip file is, run the following command:

$ unzip app.zip

Unzip zip files in command line in CentOS

To unzip a zip folder, use the unzip command followed by the name of the zip file.

unzip file.zip

The unzip command in CentOS will unzip the zip file to the current working directory.

Unzip zip file to specific directory

With -d option we can specify the directory, which we want to extract files.

unzip -d /tmp file.zip

This time CentOS unzip command will extract the zip file to the /tmp directory.

Search