101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 105


If the gzip compressed tar archive texts.tgz contains the files a.txt and b.txt, which files will be present in the current directory after running gunzip texts.tgz?

Show Answer
Correct Answer: BE

When running gunzip on a gzip compressed tar archive such as texts.tgz, the command will decompress the file, resulting in a .tar file being created in the current directory. The original .tgz file will be removed by default, so the resulting file in the directory will be texts.tar.

Discussion

16 comments
Sign in to comment
serbalOption: E
Mar 10, 2020

wrong answer - only *.tar file will be after gunzip

cast7omadrid1
Mar 12, 2020

true! the answer is E

Rini_Giannenzo
Nov 14, 2020

Porcaccissimo

blk_542Option: E
Nov 20, 2022

E: [root@centos-vm TAR-TESTING]# tar -czf texts.tgz a.txt b.txt [root@centos-vm TAR-TESTING]# ls -l total 4 -rw-r--r--. 1 root root 0 Nov 20 13:58 a.txt -rw-r--r--. 1 root root 0 Nov 20 13:58 b.txt -rw-r--r--. 1 root root 117 Nov 20 13:59 texts.tgz [root@centos-vm TAR-TESTING]# rm -rf a.txt b.txt [root@centos-vm TAR-TESTING]# ls -l total 4 -rw-r--r--. 1 root root 117 Nov 20 13:59 texts.tgz [root@centos-vm TAR-TESTING]# gunzip texts.tgz [root@centos-vm TAR-TESTING]# ls -l total 12 -rw-r--r--. 1 root root 10240 Nov 20 13:59 texts.tar [root@centos-vm TAR-TESTING]#

anhcqOption: E
Nov 26, 2021

gunzip remove original file after extract it, E is correct answer

klebhenOption: E
Jul 22, 2020

After executing some commands, the answer is E because when you use gunzip without any parameter, i.e -k --keep, the extraction will not keep .tgz, but only .tar

deewetdvjbmnjkjytfdszxcOption: D
Jul 26, 2020

I think is D. You can create a tgz file without creating first a tar file.

Vano1
Aug 3, 2020

tar -czf texts.tgz a.txt b.txt create first tar archive and after create gzip compression file. I verified on Debian9 and answer is E.

AbumazinOption: E
Mar 20, 2021

Answer E

HunTecOption: E
Apr 8, 2022

E is correct

gonzalocoOption: E
Apr 13, 2022

E 100%

diocane24
Mar 17, 2021

ciao sono troppo short

iwkno6Option: E
Jul 28, 2021

only .tar remains so E is correct

serlanOption: E
Dec 21, 2021

Answer E

molotovOption: E
Jan 31, 2022

E is correct, tested on Ubuntu 21.10.

LazylinuxOption: E
Apr 7, 2022

E.....asy

gonzalocoOption: E
Apr 19, 2022

I think is E

peppinielloOption: E
Nov 4, 2023

tried on ubuntu