Home  >  Article  >  Operation and Maintenance  >  How to compress in linux

How to compress in linux

王林
王林Original
2020-03-11 15:10:511927browse

How to compress in linux

Use the tar command to compress the file.

Pay attention to the parameter cvf following the tar command, and then follow it with the name of the compressed folder

tar -cvf test.tar *.py

(Recommended tutorial: linux tutorial)

You can also compress the file into gz format by following tar with the zcvf parameter.

How to compress in linux

Related video tutorial recommendations: linux video tutorial

The above is the detailed content of How to compress in linux. 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