

If you don’t want to install anything more to unzip files, you can also write Python or Perl scripts to do the job. The GUI format is simple and accessible for the right context menu to make the windows and macOS users more at home on Linux. The command-line utility is more useful when you are working with a remote server. Here we tried to describe every possible way on how to zip and unzip files on Ubuntu. With this, we come to the end of the tutorial.

Then write the following command to extract your zip files- perl filename.zip Final Thoughts Just put on the following- #!/usr/bin/env perlįoreach my $filepath $archive = Archive::Extract->new( archive => $filepath ) This simple Perl script will allow you to unzip files. Perl is also a scripting language for Linux and offers similar modules like Python above. Then run the following command to run this script and unzip your files- python3 pyunzip.py filename.zip 10. The following script can be used in unzipping a zip file. Ubuntu’s scripting language Python comes with all the required modules that offer unzipping functionality. If you don’t want to install anything to extract files, you can use scripts to do that. You can also zip folders alongside with files using the following command:ħz e backup.7z 9. Here, all three files -samplefile1, samplefile2, and samplefile3 are zipped into the newzip.zip folder. To better understand, look at the below picture. You can zip an unlimited number of files. The files are serially written one by one with a single space. The parameter zipname is the name of your zipped file. You need to write it in the following way: zip zipname file1 file2 file3. Use the zip command to zip files from the terminal. This command will install the necessary programs for the task.

Open the terminal and run the following command: sudo apt install zip unzip If the software is not there, you can install it by the following command. For the task, we need to check whether our system has a pre-installed zip. Though the tutorial will work exactly the same for any version of the Ubuntu. For this tutorial, we are using Ubuntu 18.04 LTS version.
