Wednesday, 4 February 2009

.gz, .tar, .bz2, rar

$ gunzip filename.gz # to unzip


$ tar cvzf foo.tgz *.cc *.h # to create. works for directories, too.
$ tar xzf foo.tgz # to extract

$ gunzip < file.tar.gz | tar xvf -          # to extract.  $ bunzip2 filename.bz2          # extract  $ tar -xvf filename.tar      # extract   $ tar jxvf filename.tar.bz2

$ unzip filename.zip



$ bunzip xine.bz2

and rar / multipart rar:

unrar x 1strarfilename.rar


--------------------- groups of files

ls *.rar | xargs -i unrar x {}



Wow.  That CUNT Gavin is reading over my shoulder.  I blame the parents.

.tar.gz

(He's still whittering on, with everyone in the room ignoring him.  What a cunt, honestly)

.tar.gz:  to extract,

$ tar xvf filename.tar.gz


No comments:

Post a Comment