To zip a folder in Ubuntu (or any Ubuntu-based Linux distribution), you can use the zip command in the terminal. Here’s how:
1. Install zip (if not installed)
2. Zip a folder
Use the following syntax:
-
-rmeans recursive (to include all subfolders and files) -
archive_name.zipis the name you want for the zip file -
folder_nameis the folder you want to compress
Example:
This will create my_project.zip containing everything in the my_project/ folder.
