A tarball (tar.gz file) is compressed tar archive.

  The tar program provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use Tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored.

  Syntax  

tar options file.tar.gz
tar options file.tar.gz pattern
tar -xf file.tar.gz
tar -xvf file.tar.gz
tar -zxvf file.tar.gz
tar -zxvf file.tar.gz file1 file2 dir1 dir2

  Extract tar.gz file

  Extract one or more members from an archive, enter:

tar -zxvf {file.tar.gz}

  If your tarball name is backup.tar.gz, enter the following at a shell prompt to extract files:

tar -zxvf backup.tar.gz

  Extract resume.doc file from backup.tar.gz tarball, enter:

tar -zxvf backup.tar.gz resume.doc

  Where,

  -z :  Work on gzip compression automatically when reading archives

  -x :  Extract archives

  -v :  Produce verbose output  i.e. progress and extracted file list on screen

  -f  :  Read the archive from the archive to the specified file.

  -t  :  List the files in the archive

 

  Extracting an entire archive

  To extract an entire archive, specify the archive file name only, with no individual file names as arguments.

tar -zxvf backup.tar.gz

  List files in archive

  To view a detailed table of contents (list of file), enter:  

tar -tvf backup.tar.gz

最新文章

  1. echarts 图表应用
  2. VS2015详细安装步骤
  3. 层叠上下文(The stacking context)
  4. 3669 [Noi2014]魔法森林(LCT,最小生成树)
  5. XPOSED-LUA
  6. jquery , find the event handler,找到jquery中的event handler
  7. 引用类型传递 ListView展示数据
  8. 浅析开源数据库MySQL架构
  9. 史上最全webview详解
  10. Navicat for MySQL 安装和破解
  11. java8_api_misc
  12. 听闻 kubernetes,快速了解一番
  13. android编译错误--/usr/bin/ld: cannot find -lz
  14. css3---2D效果 ---3D效果
  15. (4.1)mysql备份还原——mysql常见故障
  16. 整理有关浏览器兼容性的css样式
  17. H5自动准备杂记
  18. 【python-excel】Selenium+python自动化之读取Excel数据(xlrd)
  19. 解决 canvas 绘图在高清屏中的模糊问题
  20. Android 使用SQLite

热门文章

  1. pyhon中的内存优化机制
  2. rpm包下载地址
  3. AIM Tech Round (Div. 2)——ABCD
  4. NEMA-0183(GPRMC GPGGA)详细解释
  5. ddl in PL/SQL
  6. 2.4-EN_STP
  7. Swift基础(类,结构体,函数)
  8. kendo AutoComplete实现多筛选条件
  9. ant+jmeter中build.xml配置详解
  10. hdu5044(二分)