Linux Shell Command To Zip And Unzip Files Linux
linux shell command to zip and unzip files linux
linux, shell, command, to, zip, and, unzip, files, linux
Linux Shell Command To Zip And Unzip Files Linux
Post Description: linux shell command to zip and unzip files linux
POST# 1346
Posted On: Mon Apr 28, 2008 5:27 pm
Webune
Topic: Linux Shell Command To Zip And Unzip Files Linux
Hello,

I have a fedora/red har install dedicated server. I just uploaded a .zip file.

As you know, i can only access my server through ssh.

I would like to know how to uncompress a .zip file in the command line.

I know how to unpack in windowns, but not familiar with linux.

Thanks
Page# 1


Mon Apr 28, 2008 5:28 pm
1
Web Hosting Support
Reply #2011
The zip and unzip Commands:

The zip and unzip programs work almost the same as its cousins: PKZIP and PKUNZIP from DOS . You can compress many files together into a zip file like this:

Code/Command:
zip squash.zip file1 file2 file3



Then you can uncompress this original files with this command:

Code/Command:
unzip squash.zip



Most of the flags are the same used in PKZIP and PKUNZIP, however, there are several differences, so you might like to view the help with zip -h or unzip -h if you need anything fancier than the basic commands which were show here.

If you want to use the -k flag when you zip a file under Linux, you can apply PKUNZIP to it under DOS. The -k flag tells the zip program to translate the Unix file and directory names into something that fits the more restrictive DOS naming pattern.

If you want more information on the zip utility, you can view the man pages with this command;

Code/Command:
man zip
* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload