Saturday, November 27, 2010

Compressing and Decompressing Files

To decompress tar.gz (tgz) do (tar combines multiple files in a directory to a single file and gz compresses it)
  • tar xzvf filename
To compress to tar.gz do
  • tar czvf filename.tgz directory/
To decompress bz2 files do
  • bunzip2 filename.bz2
  • if it is tar.bz2 then do tar -xjvf filename.tar.bz2
To compress into tar.bz2 do
  • tar cjvf filename.tar.bz2 directory/

No comments:

Post a Comment

Continuously monitor GPU usage

 For nvidia GPUs do the follwing: nvidia-smi -l 1