码迷,mamicode.com
首页 > 系统相关 > 详细

Linux tar command usage

时间:2014-05-01 16:16:01      阅读:586      评论:0      收藏:0      [点我收藏+]

标签:des   style   class   code   java   tar   ext   color   2014   cti   http   

Linux tar command usage

Linux tar command usage

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:

tar -xvf archive.tar

2 Create a gzipped archive:

tar -cvzf archive.tar.gz files_to_add/folder_to_add

The corresponding extract command:

tar -xvfz archive.tar.gz

3 List the files in an archive

tar -tvf archive.tar

or

tar -tvfz archive.tar.gz

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

Linux tar command usage,码迷,mamicode.com

Linux tar command usage

标签:des   style   class   code   java   tar   ext   color   2014   cti   http   

原文地址:http://www.cnblogs.com/wujingcqu/p/3700584.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!