- Forums
- SEO Forums
- How To Zip Folders In Linux Command
Learn About Zipping Folders In Linux With A Shell Command You Can Zip Files And Directories [478], Last Updated: Sat Sep 14, 2024
Webune Support
Sun Nov 15, 2009
1 Comments
571 Visits
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
https://www.webune.com/forums/how-to-zip-folders-in-linux-command.html