Compressing files in Suse

Soldato
Joined
17 Nov 2004
Posts
10,012
Location
The Republic
I want to be able to compress files in suse so that thay are a .zip file.

When I goto the Gnome terminal I cd to the correct directrory where the file is (Currently.exe) I then put in the following command: zip file.exe

The system waits and then I get the following error message

zip warning: missing signature--propbably not a zip file (did you
zip warning: remember to use binary mode when you transfered it ?)

zip error: Zip file structure invalid (file.exe)

these are files that are resident on my laptop such as .exe files or .mov files.

Any suggestions ?
 
Associate
Joined
4 Feb 2006
Posts
91
To get it working, type something like this:
zip outputzipfile.zip inputfile.txt
if you want to add all .exe files to a zip, then:
zip outputzipfile.zip *.exe

When you come across an error when using a command, it's usually because you haven't given it the right information in the arguments (or at least, in the wrong order). To work out how you should use a command, type:
command -h
or
command --help
They should show you how to use the command. If that isn't enough, you can find a manual page to give you a more wordy way of using the command, along with examples (v. helpful)
man command
If that isn't enough, then try googling it, eg.
search for: command howto

Using that system, you should be able to work out the commands yourself.
Hope that helps!
 
Back
Top Bottom