How to use ‘Tar’ and ‘Zip’ to compress files via konsoleH
If you are using our new Control Panel, refer to this article.
Make the switch and discover a simpler, more secure way to manage your hosting.
Tar and zip commands are often used to compress a website’s content into a single smaller file to use less disk space and to expedite the download process of a large number of files.
The following file compression methods are available with xneelo:
1. konsoleH ‘File Manager’ tool (Zip):
- Browse to konsoleH and log in (Admin or Domain level)
- Select or search for a domain name in the Hosting Service tab
- Select Manage Services from the left-hand menu
- Select File Manager
- Select the file or folder which should be compressed
- Select Zip File from the right navigation bar
Your public_html directory (all web content) can be compressed (zipped):
- Browse to konsoleH and log in (Admin or Domain level)
- Select or search for a domain name in the Hosting Service tab
- Select Manage Services from the left-hand menu
- Select File Manager
- Select Go to Home Folder
- Click Expanded View
- Select the public_html folder
- Select Zip File from the right navigation bar
2. How to use Tar and Zip via SSH
To compress content within the public_html directory via SSH: (where [ ] indicates a filename of the user’s choice)
Tar Compress individual files:
- SSH to the web server
- Change to the public_html directory
- run: tar -zcvf [tar_file_name.tar.gz] (file1) (file2) etc.[a-zA-Z0-9]*
- Eg. tar -zcvf testcontent.tar.gz index.html info.php
Tar Compress all public_html content (all web content):
- SSH to the web server
- Change to the public_html directory
- tar -zcvf [tar_file_name.tar.gz] * .[a-zA-Z0-9]*
ZIP Compress individual files:
- SSH to the web server
- Change to the public_html directory
- run: zip -rqv [zip_filename.zip] (file1) (file2) etc. .[a-zA-Z0-9]*
- Eg. zip -rqv testcontent.zip index.html info.php
ZIP Compress all public_html content (all web content):
- SSH to the web server
- Change to the public_html directory
- run: zip -rqv [zip_filename.zip] * .[a-zA-Z0-9]*
Extracting files from a zip or tar involves a similar process.
The new xneelo Control Panel is here
Experience a simpler, more secure way to manage your hosting. Most features are now live and ready for you. Switch now





