How to create .tar.bz2 file in a single command
In Category Command Line
The tar command doesn’t support any option for running bzip2 automatically after creating taball. The following example shows how to create the archive with .tar.bz2 in a single command without creating intermediate archives. The output of “tar” is redirected to “bzip2” command to generate the target archive.
[neo@techpup ~]# tar -c myproject/ | bzip2 > myproject.tar.bz2
Recent Comments