Tuesday, September 16th, 2008 11:48 PM
Find all files with ‘.log’ extention and make an bzip archive
find /var/log -name '*.log' | tar cv --files-from=- | bzip2 > log.tar.bz2
No Comments »
Saturday, September 13th, 2008 11:40 PM
Decompress a compressed tar archive in bzip2
tar -xvfj archive.tar.bz2tar -xvfj archive.tar.bz2
No Comments »
Thursday, September 11th, 2008 11:46 PM
create a tarball compressed into bzip2
tar -cvfj archive.tar.bz2 dir
No Comments »
Friday, August 22nd, 2008 11:46 PM
extract a tarball into / tmp
tar -xvf archive.tar -C /tmp
1 Comment »
Thursday, July 31st, 2008 11:05 PM
Show contents of an archive
tar -tf archive.tar
No Comments »
Sunday, June 22nd, 2008 10:27 PM
Create a uncompressed tarball
tar -cvf archive.tar file
No Comments »
Tuesday, August 21st, 2007 10:51 PM
How to read a big text file that is tarballed - without extracting the whole thing…
bzcat enwiki-20070802-pages-articles.xml.bz2 | head -10
[tags]tar,zip,bzip,text,read,wikipedia[/tags]
No Comments »