exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 105 discussion

Actual exam question from LPI's 101-500
Question #: 105
Topic #: 1
[All 101-500 Questions]

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?

  • A. Only a.txt, b.txt, and texts.tgz
  • B. Only texts.tar and texts.tgz
  • C. Only a.txt.gz and b.txt.gz
  • D. Only a.txt and b.txt
  • E. Only texts.tar
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
serbal
Highly Voted 4 years, 9 months ago
wrong answer - only *.tar file will be after gunzip
upvoted 34 times
cast7omadrid1
4 years, 8 months ago
true! the answer is E
upvoted 29 times
...
...
Rini_Giannenzo
Highly Voted 4 years ago
Porcaccissimo
upvoted 6 times
...
LinuxLewis
Most Recent 3 months, 2 weeks ago
i think the question is kinda weird, if its gunzip alone, answer should be E, otherwise B tar cf testrun.tgz a.txt b.txt (to create tgz) tar tf testrun.tgz (to confirm txts in tgz) after that run: rm a.txt b.txt (clear both txts from folder) gunzip <testrun.tgz>finals.tar (keep original tgz and create tar as well) ls -al might be wrong but ...
upvoted 1 times
...
peppiniello
1 year, 1 month ago
Selected Answer: E
tried on ubuntu
upvoted 1 times
...
blk_542
2 years ago
Selected Answer: E
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]#
upvoted 6 times
...
gonzaloco
2 years, 7 months ago
Selected Answer: E
I think is E
upvoted 1 times
...
gonzaloco
2 years, 7 months ago
Selected Answer: E
E 100%
upvoted 2 times
...
HunTec
2 years, 8 months ago
Selected Answer: E
E is correct
upvoted 2 times
...
Lazylinux
2 years, 8 months ago
Selected Answer: E
E.....asy
upvoted 1 times
...
molotov
2 years, 10 months ago
Selected Answer: E
E is correct, tested on Ubuntu 21.10.
upvoted 1 times
...
serlan
2 years, 11 months ago
Answer E
upvoted 1 times
...
anhcq
3 years ago
Selected Answer: E
gunzip remove original file after extract it, E is correct answer
upvoted 4 times
...
iwkno6
3 years, 4 months ago
only .tar remains so E is correct
upvoted 1 times
...
Abumazin
3 years, 8 months ago
Answer E
upvoted 2 times
...
diocane24
3 years, 8 months ago
ciao sono troppo short
upvoted 1 times
...
deewetdvjbmnjkjytfdszxc
4 years, 4 months ago
I think is D. You can create a tgz file without creating first a tar file.
upvoted 2 times
Vano1
4 years, 4 months ago
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.
upvoted 4 times
...
...
klebhen
4 years, 4 months ago
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
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...