![]() The GNU tar command included with Linux distributions has integrated compression. The tar command can extract the resulting archives, too. tgz archive files, also called "tarballs." This command has a large number of options, but you just need to remember a few letters to quickly create archives with tar. Once that is done, follow the steps mentioned above to compress and decompress files and directories in Linux.The tar command on Linux is often used to create. However, to zip a file in a Linux operating system, you must first install the zip and unzip packages. ![]() However, make sure to check out our other blogs Here! ConclusionĬompressing a file can have major benefits, such as storage, security, and integrity. Verify the files in the selected directory:Īs you can see that the files have been extracted onto the Desktop, which was our desired directory. Once the extraction is complete, it will show the following prompt: In the Archive Manager, click on the “Extract” button on the top left:ĭoing this will open up a new explorer, which will specify the directory for extraction, select the directory and click on the “Extract” button:Īs you can see, we are extracting the file on the Desktop. To unzip a compressed file using, open up the zipped file using the “Archive Manager”: Simply select both of them and press right-click from the drop-down menu, select the “compress” option:ĭoing this will open up a dialogue box, in which you need to provide the name of the zipped file and select the extension/format of the zipped file and click on the create button:ĭoing this will create the zip file in the same directory, which can be seen in the “files” application as well: To demonstrate the working of the GUI zipping process, we have the following files inside our present working directory: Using the GUI to compress and decompress files and directories is quite easy. If you’re looking for quality self-managed servers with high amounts of RAM and storage, look no further.Ĭheck the plans for yourself by clicking Here ! How to Zip and Unzip a File/Directory Using the GUI? The plans include Linux VPS, Sneaker Servers, Dedicated Servers & turnkey solutions. This will give the following output on the terminal:Īs you can see from the output, it has extracted the file secret.zip Dracula VPS Hosting Serviceĭracula Servers offers high-performance server hosting at entry-level prices. In our example, if you want to extract the content of the “compress1.zip”, you will run the following command: unzip compress1.zip The syntax of the unzip command is as: unzip zippedFile.zip To unzip this file, you will use the unzip package. You have successfully compressed a file into a zip using the terminal. You can also verify it by heading over to the same directory using the GUI: To verify this, simply run the “ ls” command in the same pwd: This confirms that the zip file has been created. Running this command will display the following output on the terminal: After that, let’s create a zipped file in the same pwd using the following command: zip compress1 secret.txt This will create a new text file in the present working directory. To use the zip package, let’s create a new text file that we will include in our compressed file by using the following command: touch secret.txt
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |