Home > Article > Operation and Maintenance > What is the command to compress tar.gz?
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.
#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.
Then enter: [cd absolute path], which is the path where the file you want to suppress is located.
Enter the compression command and the compressed file name, [tar -zcvf filename.tar.gz].
Press Enter, no error is reported, then it is compressed
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!