making a zip file in Ubuntu

dotKer

Member
Joined
Aug 16, 2019
Messages
69
Reaction score
14
Credits
0
I am using Ubutu(Xubuntu).

I have a file named "test.sql" in my folder of Downloads.
I like to zip it so that make it "test.sql.zip".

I can make it "test.sql.tar.gz" by right click the file and select "Create Archive..."
But I don't know how to make it as a zip file.
 


Possibly comes under "Archive Manager" in Ubuntu
 
The default file-manager used by Xubuntu's XFCE DE is Thunar.
When you select "Create archive..." it should pop up a dialog from file-roller that has the name of the file you right clicked in one box and then a file-extension in the box next to it.
.tar.gz is the default file-extension.
If you left-click on the box containing the file-extension, you should be presented with a list of alternative extensions, including zip.
The exact list of extensions available will depend on which archive formats you've installed software for.
zip should be built in, but just in case - you might want to ensure that you have the zip and unzip packages installed.

Once you have set the appropriate file-extension, click on "Create" and file-roller will compress your file.

And as a fallback - if you're really stuck - you could do it in the terminal like this:
Code:
zip -r test.sql.zip test.sql
 

Members online


Top