====== How to extract gzipped and bzipped files (.tgz, .tar.gz, .tar.bz2.) ======
GNU tar supports the -z and -j flags, which allows extraction of compressed files without a pipeline:
tar -xvzf archivefile.tar.gz
tar -xvjf archivefile.tar.bz2
----
Inside the DSM-G600 you can't use those flags, so there you must use a pipeline:
gunzip -c archivefile.tar.gz | /mnt/HD_a2/tar -xvf -
/mnt/HD_a2/bzip2 -dc archivefile.tar.bz2 | /mnt/HD_a2/tar -xvf -
[bzip2 can be obtained [[http://dns323.kood.org/downloads/bzip2-1.0.3.tar.bz2|here]]. It's a bzip2 archive, so you'll obviously want to extract it //before// you install it onto the DSM-G600 8-).]
----
In windows you can use various applications to extract tar.bz2 files:
* [[http://www.7-zip.org/|7Zip]] (GUI based free extractor)
* [[http://gnuwin32.sourceforge.net/packages/bzip2.htm|bzip2]]+[[http://gnuwin32.sourceforge.net/packages/tar.htm|tar]] for windows
* [[http://cgpgroup.com/index.asp?PgToLd=WBZIP2|wbzip2]] with GUI
* [[http://www.rarlab.com/|WinRAR]]