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

你可能感兴趣的:(command)