Linux Ask!

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 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