Linux tar command usage
2024-07-02 03:35:31 228人阅读
<?xml version="1.0" encoding="utf-8"?>Linux tar command usage<meta name="generator" content="Org-mode"><meta name="author" content="wujing"><meta name="keywords" content="linux, tar"><style type="text/css">
</style>Linux tar command usage
Table of Contents
- 1. Create an archive:
- 2. Create a gzipped archive:
- 3. List the files in an archive
- 4. Add a file or directory to an existing archive
The frequently used tar command are listed as follows:
1 Create an archive:
tar -cvf archive.tar files_to_add/folder_to_add |
the corresponding extract command:
2 Create a gzipped archive:
tar -cvzf archive.tar.gz files_to_add/folder_to_add |
The corresponding extract command:
3 List the files in an archive
4 Add a file or directory to an existing archive
tar -rvf archive.tar files_to_add |
Author: wujing
Created: 2014-04-30 三 09:21
Emacs 24.3.1 (Org mode 8.2.6)
Validate
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉:
投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。