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.
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!