Bluehost Web Hosting Help
Compress Decompress Files via CLI
Compress/Decompress files via CLI (Command-Line Interface)
The following commands will allow you to compress your files and directories into a compressed file such as .zip, .tar, .gz, .bz2, etc. This will also allow you to decompress the contents back into their origenal state. If you would prefer to use a GUI (web-based) interface to compress or decompress, You can also do this through cPanel's file manager.
You can also extract and compress files via SSH:
To extract .zip files the command would be as follows:
To extract .bz2 files:
To extract .gz files:
To extract .tar files:
To extract .tar.bz2 files:
To extract .tar.gz files:
Please note that these are the most basic forms of the commands, and have many options that are possible. Bluehost does not provide technical support for using these commands, however to learn more about each command you can type user@server ~ $ man <command> Where <command> is the command you would like to learn more about, such as "tar" or "gzip."
Recommended Help Content
File Manager - How to Compress Files into an Archive GZip
This article will explain how to utilize GZip through the file manager.
How To Manage Databases With Command Line SSH
This article will instruct you how to export a database from the command line (SSH).
How Import Databases Using Command Line SSH
This article will instruct you how to import a database from the command line (SSH).
Related Help Content
Rock vs Legacy
In 2018, we introduced our new user interface, Bluerock. While some of our customers are still using accounts with the Legacy interface, all new signups will see the Bluerock layout. Our goal is to move all customers onto a Bluerock account by the end of 2019.
Specify a Cron Job to Use a Specific phpini File
Script executed with a cron job requires a specific php.ini file to be used.
Is SSH/Shell access enabled by default?
Find and replace across multiple files
How to edit several individual pages to replace a string of text e.g. update the phone number on the footer of every page on your site.
Intro to FTP
There are many ways that you can transfer files and folder to and from your hosting account. We highly recommend using an FTP (File Transfer Protocol) program to quickly upload and download files. We
New Account Experience - FAQ
I received an email that my account was migrating; when I log in, my interface looks different. Why did this change? This article will cover some commonly asked questions about the new experience.
File Manager - How to Extract Files from an Archive
This article will walk you through extracting compressed files using the File Manager.
Backup and Restore with Site Backup Pro
How to restore individual files or folders with the Site Backup & Restore tool