How To Zip A Folder In Ubuntu 1804
Zip and unzip files on ubuntu for this tutorial we are using ubuntu 1804 lts version.
How to zip a folder in ubuntu 1804. How do i use zip command to compress a folder. There are several ways and tools to protect your file with password on linux. The program supports 7z lzma2 xz zip zip64 cab rar arj gzip bzip2 tar cpio rpm iso most filesystem images and deb formats. To do so just use the ls la command to show the list of all files and folders of the current directory.
With zip you can compress multiple files into one file. Open the terminal and type the following command. Both terminal and gui methods have been discussed. Zip is one of the most popular archive file format out there.
The syntax is zip r filenamezip folder zip r filenamezip folder1 folder2. To create an encrypted zip file in ubuntu 1804 open up archive manager file roller click on the top menu labelled archive manager and select new archivedesignate the name and destination for your new archive and change to extension to zipunder the other options sub menu create a password thereby encrypting the archive. For the tutorial we are going to use ubuntu 1804. This not only saves disk space it also saves network bandwidth.
Right click the file and youll see the option extract here. In this tutorial we will show you how to protect zip file with a password using the command line and gui on ubuntu 1804. If you zip a directory remember to use the r flag to zip all the files within it recursively. Protect your compressed zip file with password on linux is pretty easy.
The following syntax creates a zip archive in ubuntu terminal. As you can see we can archive and compress one or more files together using the zip command. Zipping files and folders with zip. In this tutorial i am going to show you all the available ways both command line and the graphical user interface to zip and unzip files on ubuntu linux.
First of all you need to select the file or folder to make a compressed file. In this tutorial we are going to learn how to install and use 7zip on ubuntu 1804ubuntu 2004. Zip a folder in ubuntu linux using the cli. First install the zip command using apt command or apt get command.
Zip archivenamezip file1 file2 file3. Sudo apt install zip unzip. Open the file manager and go to the folder where your zip file is stored. Here are the steps which you need to follow in order to compress files using the 7 zip on your ubuntu machine.
Zip r wwwzip. If for any reason the zip is not installed you can install it using the following command. I n this article we shall show you the command line way and gui way of creating an archive zip format and extracting an existing zip file.