How to Unzip zip files in CentOS using unzip Command
How to Unzip zip files in CentOS using unzip Command
Install unzip command on CentOS 7
#yum install unzip
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_for_unzip.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 /home/user/Documents file_for_unzip
.zip
This time CentOS unzip command will extract the zip file to the /home/user/Documents directory.