TAR command

xiaoxiao2021-03-06  40

The tar command is a command that compresses and decompressed. The common commands are as follows: # tar -cf all.tar * .jpg This command is to packet all .jpg files into a package called all.tar. -c is a file name that represents a new package, -f specified package. #tar -rf all.tar * .gif This command is to add all the .gif's files to all. Tar's bag. -r is the meaning of increasing files. # tar-uf all.tar logo.gif This command is updated to the original TAR package all.tar logo.gif file, -u is the meaning of the update file. # tar -tf all.tar This command is to list all files in all.tar packages, -t is the meaning of the file. # tar -xf all.tar This command is all files in the all.tar package, -t is the meaning of unlocking # tar -czf all.tar.gz * .jpg # tar -czf all.tar.gz * .jpg This command is a TAR package that puts all .jpg's files into a TAR package, and will Compressed with Gzip, generate a Gzip compressed package, including all.tar.gz # tar -xzf all.tar.gz This command is open to the top of the above.

转载请注明原文地址:https://www.9cbs.com/read-53744.html

New Post(0)