In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Do not understand the use of tar command linux packaging and backup archiving tools? In fact, it is not difficult to solve this problem. Let Xiaobian take you to learn how to solve it together. I hope you will gain a lot after reading this article.
The tar command creates archives for linux files and directories. With tar, you can create an archive (backup file) for a particular file, change files in an archive, or add new files to an archive.
tar was originally used to create archives on tape, but now users can create archives on any device. Using tar, you can package a large number of files and directories into a single file, which is useful for backing up files or combining several files into a single file for network transmission.
Syntax format: tar [parameter] [file or directory]
Common parameters:
Reference Example
Type all.jpg files into a package called all.tar:
[root@linuxcool ~]# tar -cf all.tar *.jpg
Delete source files after packaging:
[root@linuxcool ~]# tar -cvf linuxcool.tar linuxcool --remove-files
After packaging the file, compress it in gzip:
[root@linuxcool ~]# tar -zcvf log.tar.gz linuxcool.log Thank you for reading this article carefully. I hope that Xiaobian can share the contents of the archive tool that uses the tar command to package and backup linux. At the same time, I hope that everyone will support it a lot. Pay attention to the industry information channel. Find out if you encounter problems. Detailed solutions are waiting for you to learn!
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.