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, June 26th, 2008 10:59 PM
Decompress a file called ‘file.bz2′
bunzip2 file.bz2
No Comments »
Sunday, June 22nd, 2008 10:27 PM
Create a uncompressed tarball
tar -cvf archive.tar file
No Comments »
Sunday, May 25th, 2008 11:23 PM
Create an archive rar called ‘file.rar’
rar a file.rar test_file
No Comments »
Wednesday, November 21st, 2007 11:02 PM
RAR Support in Linux is easy - just install the unrar tool…
sudo yum install unrar
No Comments »
Tuesday, October 30th, 2007 10:34 PM
Compress all PHP output by adding this line to .htaccess file
php_value output_handler ob_gzhandler
No Comments »
Saturday, March 24th, 2007 01:30 PM
This is the method that I use to package a SVN Project. For CVS projects, the code is slightly different. Please note that the second line requires bash to work.
This is how I packaged nexty
svn checkout https://nexty.svn.sourceforge.net/svnroot/nexty
find nexty/ -name .svn -exec rm -rf {} \;
tar -czf nexty.tar.gz nexty/
rm -rf nexty/
No Comments »