To unzip file with an extension .Z (e.g. foo.Z)
gzip -d foo.Z
This will create a file name foo on the folder.
tar xvjf foo.tar.bz2
(here j uncompresses *.bz2 file)
To extract *.tar.xz file use xf parameters in command
$ tar xf file.tar.xz
tar -xvzf fftw-3.1.1.tar.gz or tar -xvf fftw-3.1.1.tar.gz
We can use tar to extract a
.tgz
file.tar -xvzf /path/to/yourfile.tgz
Here
x
for extractv
for verbosez
for gnuzipf
for file (this 'f' should come last, just before the file name).Similarly, for *.tar files,
tar -xvf fileName.tar
RAR Format
unrar e fileName.rar
This will extract all the files from .rar.
No comments:
Post a Comment