This action will leave you with the original file without any form of compression. We will use the same example as above: gunzip nossl_ To remove the compression and get the original file back, type the following command: gunzip. It is not lost - the newly compressed version simply replaces it. gz extension at the end, in our case, nossl_ ). Note that the file you are archiving will disappear, and you will find the archive in its place(it will have the name of the original file, with a. The result is a new file, which has almost five times the reduced size. Here is an example of compressing an SQL file via the command line: gzip nossl_wp18.sql Upon reaching your desired file or folder, please type in the following command: gzip After login inside, you can use the Linux Command Line basics to navigate and locate the file or folder you wish to compress. It is handy for text files, SQL files, or archived files via a different compression type ( zip, tar, tar.gz )īefore using any Linux commands, you need to log inside your account using the SSH protocol. The gzip method of compression is only usable on single files. This knowledgebase article will go over the commands you can use to archive or compress files/folders in a Linux environment through the command-line interface. You may have heard or used compression methods before, especially if you are using ( Windows) WinRAR or tar and gzip ( Unix), and zip which usually is cross-platform compatible. It uses encoding technology, and the purpose is to reduce the targeted inode’s bit structure and prep it for faster transfer or simply bring down its disk space utilization. Data compression, or sometimes referred to as archiving, is a service that helps you lower the original size of a folder or a file, ultimately reducing its disk space usage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |