Linux Shell Command To Zip And Unzip Files Linux

RegisterLogin
Linux Shell Command To Zip And Unzip Files Linux
Post Description: Linux Shell Command To Zip And Unzip Files Linux
Tags: Linux, Shell, Command, To, Zip, And, Unzip, Files, Linux
This Post Was Posted On Apr 28, 2008 By Webune #587
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
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
Web Hosting Support
#766 1
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
Apr 28, 2008 Reply Report abuse
©2012 Webune Forums - Sat Dec 22, 2012 4:04 am
Powered by: Webune Forums V3