How to use linux tar command

coldplay.xixi
Release: 2020-10-23 14:30:04
Original
7037 people have browsed it

How to use the linux tar command: First log in to the Linux server; then create a new txt file and package it using the tar command. The format is [tar -cvf packaged file name file to be packaged].

How to use linux tar command

How to use the linux tar command:

1. First log in to a usable linux server:

How to use linux tar command

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

How to use linux tar command

3. Continue Let’s talk about tar. This command is used for packaging.

tar -cvf is the file name of the package and the file to be packaged (source file)

-c means packaging

-v means to display the packaging process

-f specifies the packaged file name

The following is a demonstration: tar -cvf newfile.tar a.txt

How to use linux tar command

4. It can be seen that the packaging is successful. Then I downloaded it from the server and decompressed it:

How to use linux tar command

#5. It proves that it can indeed be used. The above is about the tar packaging. Since there is packaging , then there are unpacking instructions:

How to use linux tar command

Related learning recommendations: linux video tutorial

The above is the detailed content of How to use linux tar command. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!