How To Zip Folders In Linux Command

RegisterLogin
How To Zip Folders In Linux Command
Post Description: Learn About Zipping Folders In Linux With A Shell Command You Can Zip Files And Directories
Tags: How, To, Zip, Folders, In, Linux, Command
This Post Was Posted On Nov 15, 2009 By Webune Support #2746
today's question is: how to zip folders in linux command?

answer:

to zip a directory or a file, is very easy in linux. if you have a Webune Linux Dedicated server with us, be sure to start by login in as root.

after you are signed in as root you can execute the command to zip. lets say for example we want to zip a directory called: my_documents located in /home/myusers so this is how you would do it

first lets change directory to /home/myusers:
SHELL COMMAND:
cd /home/myusers


now we can create our zip file of my_documents
SHELL COMMAND:
zip mydocuments.zip my_documents/


now list your file and you will see you have just created mydocuments.zip
SHELL COMMAND:
ls
Charan
#3604 1
i tried with this command and its showing as compressed. then how we can open it?
Mar 11, 2010 Reply Report abuse
©2011 Webune Forums - Sun Dec 18, 2011 10:15 pm
Powered by: Webune Forums V3