"Linux rookie starter" different system file transfer and file archive compression

Source: Internet
Author: User
Tags bz2 scp file rsync


IP Addr Show br0 view the IP of the real host

File archiving

1. File archiving is to turn multiple files into an archive file

Parameters

Tar C creation

F Specify the archive name

T displays the contents of the archive file

R continue to add files to the archive file

--get to remove a single file from an archive file

--delete Deleting individual files

x remove all files from the archive file

-c Specifies the directory of the solution file

-Z GZ

-j bz2

-j XZ

2. Compression

Gz

Gzip Etc.tar Compression

Gunzip Decompression

Tar zcf etc.tar.gz/etc archived and compressed in. gz format

Tar zxf etc.tar.gz Unzip and unzip the file

bz2

bzip2 Etc.tar Compression

BUNZIIP2 Decompression

The tar jcf etc.tar.bz2/etc is archived and compressed in a compressed format. bz2

Tar jxf etc.tar.bz2 Unzip and unzip the file

Xz

Xz

Unxz

Tar Jcf etc.tar.xz/etc Archive and compress, compressed in XZ format

Tar jxf etc.tar.xz

Zip

Zip-r Etc.tar.zip Ctc.tar

Unzip Etc.tar.zip

Zip cannot archive compression at the same time

3. File transfer in the system

SCP file [email protected]:d IR upload

SCP [email protected]:/dir/file/dir download

rsync "parameter" file [email Protected]:dir

Rsync-r Synchronizing Directories

-L do not ignore links

-P Do not ignore file permissions

-T does not ignore file timestamps

-G does not ignore all groups

-O do not ignore file owner

-D do not ignore device files


This article from the "12147236" blog, reproduced please contact the author!

"Linux rookie starter" different system file transfer and file archive compression

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.