Ziping files on linux using shell is one of the most easy things to do
but today i got a bit confused when a friend asked me how to zip a file with
a different name.
example : normally i zip with the source and target name all been same.
zip -r foobar foobar
which will result in
foobar.zip
but what my friend wanted was having a different name for the result.
So i had to jump straight to the linux channel on IRC. below is what i learnt from there.
zip -r foo.zip bar
which results in foo.zip
what abt unziping too
unzip foo.zip
but what about unziping to have different name .
unzip foo.zip && mv foo bar