Home > Article > Operation and Maintenance > tar command to package files
Packaging: multiple files into one file.
Separate packaging command:
tar -cvf 归档路径 被打包路径.(整体文件变大,后缀一般是.tar)
Example:
[root@lbg test]# ls a b c d [root@lbg test]# tar -cvf test.tar a b c d ---将文件abcd打包为test.tar [root@lbg test]# ls a b c d test.tar
Recommended tutorial: linux tutorial
The above is the detailed content of tar command to package files. For more information, please follow other related articles on the PHP Chinese website!