Home  >  Article  >  Operation and Maintenance  >  tar command to package files

tar command to package files

王林
王林Original
2020-05-12 14:49:034846browse

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!

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