Here, we zipped two files with a folder into the newzip1. You can zip using the graphical user interface. Linux systems provide an excellent GUI interface for more simple operation.
First of all, go to the directory of the files you need to zip. Then select the files with pressing ctrl and right-click the mouse to see the below options. Select compress for this purpose. Here you name the file and select the type of compression. There are other formats like. For this task, we select the. You can select the location of the file. To unzip a zipped file, go to the target directory. Then you simply need to use the unzip command. See below-.
Here you will get options like replacing files. This is because we are extracting the zip file into the same folder with the files. You should enter A to extract all if you want to extract the files into another directory.
Write the command in the following way:. Here you should specify the name of a directory following the -d command. To graphically do this, you should go to the folder where the zipped files are kept. Select the file and do exactly what specified below-. In Linux systems, you find many files are archived in.
In Ubuntu, you can also extract that type of file. Just use the following command-. Just put the name of the file after the command, and you will get the file extracted. To unzip. First, install it with the following command-. The other popular archive file format is. You can unzip them in the terminal too.
First, uncompress the. For unzipping. To do so, execute the given command on the terminal. The following script can be used in unzipping a zip file. Perl is also a scripting language for Linux and offers similar modules like Python above. This simple Perl script will allow you to unzip files. Just put on the following-. With this, we come to the end of the tutorial. Here we tried to describe every possible way on how to zip and unzip files on Ubuntu.
The command-line utility is more useful when you are working with a remote server. The GUI format is simple and accessible for the right context menu to make the windows and macOS users more at home on Linux. We provided the scripts for that task. This is convincing while you are developing something that requires you to embed the unzipping functionality with the environment.
Zip is a very popular compression format used mainly in Windows. To zip files and folder in Ubuntu we need to install zip package. To unzip zip file we need to install unzip command. Both packages are installed by default on Ubuntu desktop version, but not in the Ubuntu server. If you zip a directory, remember to use the -r flag to zip all the files within it recursively:. To create password protected zip files, use the -e or --encrypt option:.
To create a zip file in GUI, right click on the file and select compress, then select archive format and click create.
0コメント