How to compress a directory to a zip file
Answer:
To compress a directory and all the files under this directory to a zip file, you can use
# zip -r output.zip directory
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to compress a directory to a zip file
Answer:
To compress a directory and all the files under this directory to a zip file, you can use
# zip -r output.zip directory
How to zip a file in Ubuntu?
Answer:
Firstly, install the "zip" package if not installed
sudo apt-get install zip
Then run the command
zip test.zip test.txt