To zip a folder in Ubuntu Linux / Debian Linux, you can use the zip
command. Here’s how you can use it:
- Open a terminal window: To open a terminal window, click on the terminal icon in the applications menu or press
Ctrl + Alt + T
. - Navigate to the folder you want to zip: To navigate to the folder you want to zip, you can use the
cd
command. For example, if the folder you want to zip is located in theDownloads
folder, you can run the following command:
cd ~/Downloads
- Zip the folder: To zip the folder, you can run the following command:
zip -r <zip_file_name>.zip <folder_name>
Replace <zip_file_name>
with the desired name for the zip file and <folder_name>
with the name of the folder you want to zip. The -r
option is used to recursively include all files and subdirectories within the folder.
For example, to zip a folder called example_folder
into a file called example_folder.zip
, you would run the following command:
zip -r example_folder.zip example_folder
This will create a zip file in the same directory as the folder you are zipping.
Note: You can also use GUI-based file compression tools like File Roller or Archive Manager to zip a folder in Ubuntu Linux / Debian Linux.
(Valium)