File archiving is to combine multiple files into one packaged file, commonly known as packaging
tar c create
f specify the archive file name
t ## show the contents of the archive
The parameter tf is followed by the file name
r ##Add files to archive
--get ##Get a single file
--delete ##Delete a single file
x ## Extract everything from the archive
-z ##gz format compression
-j ##bz2 format compression
####2.compression####
gz
gzip etc.tar ##compress into gz format
gunzip etc.tar.gz ##Decompress the gz format compressed package
tar zxf etc.tar.gz ##Unzip and unarchive the gz format compressed package
bz2
bzip2 etc.tar ##Compress into bz2 format
bunzip2 etc.tar.bz2 ##Unzip bz2 format compressed package
tar jxf etc.tar.bz2 ##Unzip and unarchive the bz2 format compressed package
xz
xz etc.tar ##Compress into xz format
unxz etc.tar.xz ##Decompress the xz format compressed package
tar Jxf etc.tar.xz ##Unzip and unarchive xz format compressed package
zip
zip -r etc.tar.zip etc.tar ##Compress into zip format
unzip etc.tar.zip ##Decompress zip format compressed package
####3. File transfer in the system####
scp file username@ip:/dir ##Upload
rsync [parameter] file username@ip:/dir
rsync -r ##Sync directory
-l ## do not ignore links
-p ##Do not ignore file permissions
-t ##Do not ignore file timestamps
-o ##Do not ignore the owner of the file
ln -s file directory ##Link file and directory