In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "what is the Linux packing command". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn what the Linux packaging command is.
When writing the compression instruction section, both gzip,bzip2,xz can compress the directory, but compress all the files in the directory to compress the gzip-r directory name, which is the gzip-rd directory name.
The tar instruction written today is that multiple directories or files can be packaged into one large file, and it can also be extracted through gzip,bzip2,xz.
1. Common parameter set
-c: create a package file
-t: check what files are packaged
-x: unpack the file
-z: compressed via gzip, preferably ending with .tar.gz
-j: compressed via bzip2, preferably with a .tar.bz2 end
-J: compress via xz, preferably ending with .tar.xz
-v: displays the name of the file being processed when compressing or decompressing
-f:-f should be followed by the file name to be processed immediately
-p: retain the original permissions and attributes of the backup data
two。 Compress case one
-z uses the compression feature of gzip
-c is to create a package file
-v is the file name that displays the package
-f is the file to be processed
In the following case, we can replace-z with-jgamble, which represents this different compression function.
3. Check the packaged files
The tar-tf package file can display all the files in the package
The tar-tvf package file can display the details of the package file
4. Pack the files you need
5. Orders belong to the general.
Compress
Tar-cvf source.tar source
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.