TarIt is a file packaging tool, and split is a file splitting tool. When sending attachments in an email, it may be necessary to compress and split the attachments due to the attachment size restriction and separate them into several emails. If you
TarIt is a file packaging tool, and split is a file splitting tool. When sending attachments in an email, it may be necessary to compress and split the attachments due to the attachment size restriction and separate them into several emails. If you
Tar cjf/home/data/ai-new/packets/| Split-b 1000m-tt.tar.bz2Cat tt.tar.bz2.a* > tt.tar.bz2Tar czf xx.tar.gz/home/ddTar xvf xx.tar.gz/home/dd
To specify an extract directory by using-C
TAR-ZXVF
Unit eighth body processing commands and TAR commandsUse the Cat command to merge files verticallymethod of vertical merging of two kinds of documentsArchive and archive technologypurpose of ArchivingWhat is archivefunctions of the tar commandcommon
In linux, tar is used to package and split files, and tar is used to decompress files.
First, compression:
Tar-czvp-f skype_backup.tar.gz skype_backup
Split:
Split-B 4000 k skype_backup.tar.gz skype_backup_20090626.tar.gz.-verbose
The
tar.gz/xz/bz2 How to DecompressTar usage: Tar was originally used to package on tape drives, and now tar can package any file, package multiple files and directories into a single file, and also support xz/bzip2/gzip compression, separate tar does
Tar: create an archive file [Syntax] tar [option] tarfilefilename [command description] the file name must be followed by the-f parameter and
Tar
[Syntax] tar [option] tarfile filename
[Command description]
The file name must be followed by the-f
Tar
[Syntax] tar [option] tarfile filename
[Command description]
The file name must be followed by the-f parameter and used as the last parameter;
[Parameter description]
-C. Create a new archive file;
-F specifies the file name;
-R: append an
Job One:1) Merge user information database files and group information database files vertically into one file/1.txt (overwrite)[Email protected]/]# Cat/etc/passwd/etc/group > 1.txt2) Merge user information database files and user password database
First, the tar command introduction:-C: Create a new tar file-T: List contents of a directory in a tar file-X: Extracting files from the tar file-F: Specifies the archive or tape (or possibly floppy) device (usually selected)-V: Displays the details
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.