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 -r mydocuments.zip my_documents/

-r is for recursive

now list your file and you will see you have just created mydocuments.zip
SHELL COMMAND:
ls