How to decompress files in Linux

23 viewsLinux
0

What  commands i have to use to to decompress files with theze  textentions  tar  zip tar.gz  tar.xz. ? do i need  to  install some tools  for that ?

Answered question
0

.tar  extension file can be decompress using  tar command

eg # tar -C $destinationpath -xvf xyz.tar

.zip extension file can be decompress using “unzip” command

# unzip xyz.zip

.gz   extension file can decompress using “gunzip” command

# gunzip  xyz.gz

.tar.xz  extension file can decompress using “tar” command

# tar -xf xyz.tar.xz

Answered question