How to Compress and Extract Files using SSH

If you are using VPS or Dedicated Server in that you like to upload or download the files for backup, it is difficult to download using FTP. So here using SSH you can compress and download the file faster as much you can depend on your internet speed. Using SSH you can compress and extract the files or folders in the server.

If you looking to compress and extract files using remote server? Here you have the solution for that. First, you need to identify the exact archive type by seeing at the file extension. The most of users are use zip type (.zip) and other extensions are tar (.tar), Tar.bz2 (.tar.bz2), Tar+Gunzip (.tar.gz), Bzip (.bz2) and Rar (.rar).

Note: Here every archive type has its own command for compressing or extracting files that all are listed below.

Compress and Extract Zip Files using SSH.

Compress files and Folders in Zip extension

If you like to compress file or folder in zip format use the below command.

Example:

Compress multiple files and Folders in Zip extension

If you like to compress multiple files/folders to a .zip file, use the below command.

Example:

Extract Zip extension files and Folders

If you like to extract file use the following command.

Example:

Compress and Extract Tar Files using SSH.

Compress files and Folders in Tar extension.

Use the following command to compress the file or folder to a tar file format.

Example:

Compress multiple files and Folders in Tar extension

If you like to compress multiple files/folders to a .tar file, use the below command.

Example:

Extract Tar extension files and Folders

If you like to extract file use the following command.

Example:

Compress and Extract Tar.bz2 Files using SSH.

Compress files and Folders in Tar.bz2 extension.

Use the following command to compress the file or folder to a tar.bz2 file format.

Example:

Compress multiple files and Folders in Tar.bz2 extension

If you like to compress multiple files/folders to a tar.bz2 file, use the below command.

Example:

Extract Tar.bz2 extension files and Folders

If you like to extract file use the following command.

Example:

Compress and Extract Tar.gz Files using SSH.

Compress files and Folders in Tar.gz extension.

Use the following command to compress the file or folder to a tar.gz file format.

Example:

Compress multiple files and Folders in Tar.gz extension

If you like to compress multiple files/folders to a tar.gz file, use the below command.

Example:

Extract Tar.gz extension files and Folders

If you like to extract file use the following command.

Example:

Compress and Extract Bzip Files using SSH.

Compress files and Folders in Bzip extension.

Use the following command to compress the file or folder to a bz2 file format.

Example:

Extract Bzip extension files and Folders

If you like to extract file use the following command.

Example:

Was this article helpful?

Yes No
×

How can we improve it?

×

We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest

Mraj

Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top

DON’T MISS ANY UPDATE

Get notified about the next update

Pin It on Pinterest