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
2024-01-08 15:57:22
remove files after pack:
tar --remove-files -cf all.tar *
compression:
-j
: bzip2-z
: gzipadd 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