Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of using tar command in linux

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to use tar in linux. Xiao Bian thinks it is quite practical, so share it for everyone to make a reference. Let's follow the editor and have a look.

The method used by the linux tar command: first log on to the linux server; then create a new txt file, and package it with the tar command in the format tar -cvf.

The Linux tar command uses:

First, log in to a linux server that you can use:

2. In this location, I created a new a.txt file for demonstration:

3. Next, tar. This instruction is packaged.

tar -cvf file name packaged file to package (source file)

-c is for packing.

-v indicates the process of displaying packaging

-f Specifies the packaged file name

Here's a demonstration: tar -cvf newfile.tar a.txt

4. It can be seen that the package was successful. Then I downloaded it from the server and extracted it:

5, prove that it can be used, the above is about tar packaging, since there is packaging, then there is an instruction to unpack:

Thank you for reading! The method of using tar command in linux is shared here. I hope the above content can be of some help to everyone, so that everyone can learn more knowledge. If you think the article is good, you can share it so that more people can see it!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report