Home  >  Article  >  Operation and Maintenance  >  What is the command to compress tar.gz?

What is the command to compress tar.gz?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-05-19 13:42:4730218browse

The command is "tar -zcvf file name.tar.gz". The specific compression method is: first click "terminal" in the launcher; then enter "the absolute path of the file compressed by cd"; finally execute " tar -zcvf filename.tar.gz" command.

What is the command to compress tar.gz?

#The operating environment of this tutorial: centos7 system, thinkpad t480 computer.

The command is to use the terminal, then click on the launcher.

Click on the terminal in the launcher, terminal, if it cannot be found, enter this in English to find it.

What is the command to compress tar.gz?

Then enter: [cd absolute path], which is the path where the file you want to suppress is located.

What is the command to compress tar.gz?

Enter the compression command and the compressed file name, [tar -zcvf filename.tar.gz].

What is the command to compress tar.gz?

Press Enter, no error is reported, then it is compressed

What is the command to compress tar.gz?

Then you can see it on your compressed path The compressed tar.gz file.

(Recommended learning: linux tutorial)

The above is the detailed content of What is the command to compress tar.gz?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn