commands - `tar`

remove files after pack:

tar --remove-files -cf all.tar *

compression:

  • -j: bzip2
  • -z: gzip

add file to existed tarball: -r

tar -rf existed.tar file1

specify the dest folder to extract to:

tar -xvf all.tar -C /path/to/extract

posted @ 2015-03-26 01:47  n0p  阅读(171)  评论(0编辑  收藏  举报