In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Tar command
Tar packing
Tar-cvf packaged file name .tar + file name + directory name
"- c": create a tar package or zip file package
"- v": visualization
"- f": followed by the file name, and compressed with "- f file name", which means the compressed file name is filename
Unzip it with "- f file name", which means to extract filename. Please note that if it is a combination of multiple parameters
With "- f", please write "- f" at the end.
Tar-cvf packaged file name.tar + filename + directory name-exclude + filename + directory name
-- exclude filters out the files or directories in the packaged file without packaging
Tar packet search
Tar-tf packaged files to see which files are made up of packaged files
"- t": view the files in the tar package
Tar unpacking
Tar-xvf packaged file
"- x": unpack or decompress
Tar-C path-xvf packaged Fil
"- C": specify the save path of the unpacked file
Tar packaging and compression
Tar-zcvf compressed file name .tar.gz + file name + directory name
"- z": gzip compression at the same time
Tar-jcvf compressed file name .tar.bz2 + file name + directory name
"- j": bzip2 compression at the same time
Tar-Jcvf compressed file name .tar.xz + file name + directory name
"- J": use xz compression at the same time
* * Special column: view files in tar-tJf xz package * *
Tar unpacking and decompression
Tar-zxvf .tar.gz packaged zip file
Tar-jxvf .tar.bz2 packaged zip file
Tar-Jxvf .tar.xz packaged zip file
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.