Wednesday, April 3, 2013

Linux Command to unzip zip file


Use below command to extract all files into the /path_to_dir directory:

$ unzip /path_to_file/file.zip  -d /path_to_extract

For example if you want to extract /var/www/html/file.zip to /var/www/html/site/

$ unzip /var/www/html/file.zip  -d /var/www/html/site/

Make sure you have installed zip / unzip utility 

if not use below commands to install

$ yum install zip

$yum install unzip

No comments:

Post a Comment