Extract file on linux server with ssh command

by SA Admin Apr 27 in Linux Command 0 Comments 114 Views

Extract file on linux server with ssh command

Extract sql.gz file:

Simple command to extract sql.gz file on linux server with ssh :

gzip -d example.sql.gz ​

Extracting .tar.gz file:

If your tar file is compressed using a gzip compressor, use this command to uncompress it.

tar xvzf file.tar.gz

Where,

x: This option tells tar to extract the files.

v: The “v” stands for “verbose.” This option will list all of the files one by one in the archive.

z: The z option is very important and tells the tar command to uncompress the file (gzip).

f: This options tells tar that you are going to give it a file name to work with.