compression Format GZ , bz2 , XZ , Zip
GIZP : Gizp/path/to/file The original file is deleted when the compression is complete ( only files can be compressed and directories cannot be compressed )
- D : Unzip
-# : Specify the compression ratio, which is the default 6
Gunzip/path/to/file The original file is deleted when the decompression is complete
zcat/path/to/file.gz : View the contents of a text file without being pressed
bzip2 : Than gzip compression tool with a larger compression ratio will also delete the original file ( only files can be compressed and directories cannot be compressed )
- k : Keep the original file when compressing
- D : Unzip
-# : Specify the compression ratio
bunzip2 : Unzip
Bzcat : No pressure to view the extracted files directly
XZ :
Xz/path/to/file
- D : Unzip
-# : Set compression ratio, default is 6
- k : Keep the original file when compressing
Unxz : Unzip the original file
Xzcat : No pressure to view the original file
Zip : Can compress the directory, to specify the compressed name and which files to compress, not delete the original file after compression, and archive and compress the tool
Zipfilename.zip file1 file2
Unzip : Unzip
Archive : Archive, the archive itself does not mean compression
Tar : Archive tool, only archive not compressed
- C : Creating an archive file
- F File.tar : Archived files for Operations
- x : Expand Archive File
--xattrs : Preserves extended attribute information while archiving
- T : Do not expand the archive to see which files are archived within the archive
-ZCF : Archive and compress, archive and invoke gzip Compression
-ZXF : That is, the decompression has expanded, called gzip Unzip and expand the archive
-JCF : Corresponding BIZP2
-JXF : Corresponding bunzip2
-JTF : Do not expand, view compressed files directly
Cpio : Archive Tool
Write a script that lets the user enter several files from the keyboard, and the script can archive the files into a single file
read–p "" : Give a hint
650) this.width=650; "Width=" 349 "height=" 281 "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") No-repeat center;border:1px solid RGB (221,221,221); "src="/e/u261/themes/default/images/spacer.gif "alt=" spacer.gif "/>
while loop, suitable for scenarios where the number of cycles is unknown, to have exit conditions
whilecondition ; Do
Statement
...
Done
Calculation - The and of the integers within the
650) this.width=650; "Width=" 215 "height=" 154 "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") No-repeat center;border:1px solid RGB (221,221,221); "src="/e/u261/themes/default/images/spacer.gif "alt=" spacer.gif "/>
write a script that reminds the user to enter a string and then display it in uppercase, but when the user enters quit then Exit
650) this.width=650; "Width=" 274 "height=" 118 "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") No-repeat center;border:1px solid RGB (221,221,221); "src="/e/u261/themes/default/images/spacer.gif "alt=" spacer.gif "/>
Write a script to see if a user is logged in and sign in and exit without logging in.
650) this.width=650; "Width=" 276 "height=" 184 "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") No-repeat center;border:1px solid RGB (221,221,221); "src="/e/u261/themes/default/images/spacer.gif "alt=" spacer.gif "/>
This article is from the Linux root file system blog, so be sure to keep this source http://amazonjian.blog.51cto.com/9604681/1715697
Linux compression and archiving