How you will uncompress the file?

Answers were Sorted based on User's Feedback



How you will uncompress the file? ..

Answer / fazlur rahaman naik

the command is as follows:

tar -zxf file name(with extension .tgz)

for more information u can see the man page for tar

Is This Answer Correct ?    17 Yes 5 No

How you will uncompress the file? ..

Answer / bipin

gunzip filename(with extension .tgz)
then
tar -xf filename(with extension.tar)

Is This Answer Correct ?    7 Yes 0 No

How you will uncompress the file? ..

Answer / azim

for zipping particular file
gzip -v xyz.txt or bzip2 -v xyz.txt
for extracting zip file (.gz) or (.bz2)
gunzip -v xyz.txt.gz
or bunzip2 -v xyz.txt.gz

Is This Answer Correct ?    8 Yes 1 No

How you will uncompress the file? ..

Answer / ramesh

tar xvf <filename> (with extension .tar)
bunzip2 <filename> (with extension .bz2)
gunzip <filename> (with extension .gz)
unzip <filename> (with extension .zip)

Is This Answer Correct ?    4 Yes 0 No

How you will uncompress the file? ..

Answer / mrigendra singh

1.If compressed file name e.g xyz.tar then
tar -xvf xyz.tar

2. If compressed file name e.g xyz.bz2 then
bzip2 -d xyz.bz2
or
bunzip2 xyz.bz2

3. If compressed file name e.g xyz.gz then
gzip -d xyz.gz
or
gunzip xyz.gz

Is This Answer Correct ?    3 Yes 0 No

How you will uncompress the file? ..

Answer / virendra

1 > if it is compressed (.Z)

#uncompress file.Z

2 > if it is ziped (.zip )
#unzip file.zip

3 > if it is gziped (.gzip)
#gunzip file.gz

4> if it is bzip2 (.bz2)
#bunzip file.bz2


#tar based compression

#creation of gziped tar
#tar zcvf file.tar.gz /home
#extracing of this file

#tar zxvf file.tar.gz


for bzip z will be replaced by j

Is This Answer Correct ?    1 Yes 0 No

How you will uncompress the file? ..

Answer / bala

compressed file is in file.txt.z format
we can uncompress this file by the command
$uncompress file.txt.z
file.txt

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

How do you rate yourself in unix(if 0 is novice and 10 is sys admin)?

2 Answers   HP,


What is df command in linux?

0 Answers  


What is make in linux?

0 Answers  


How do I stop a linux job?

0 Answers  


What does free command do in linux?

0 Answers  






how do find all failed login attempts via ssh?

8 Answers   TCL,


1. Why "d" is postfix in almost every service name of Linux like httpd, dhcpd? 2. how to restrict su & ssh services for some users? 3. how can we configure a default gateway for 10 n/w cards in a server?

6 Answers  


What is trusted/untrusted operating system?

8 Answers  


What are vim commands?

0 Answers  


if i run ls command it will show me the junk output what is problem and how to resolve it

2 Answers   BPO,


You want to verify which lines in the file kickoff contain ‘bob’. Which of the following commands will accomplish this?

0 Answers  


How do you run a command for a limited time?

0 Answers  


Categories