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?
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?
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.
wrong answer - only *.tar file will be after gunzip
true! the answer is E
Porcaccissimo
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]#
gunzip remove original file after extract it, E is correct answer
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
I think is D. You can create a tgz file without creating first a tar file.
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.
Answer E
E is correct
E 100%
ciao sono troppo short
only .tar remains so E is correct
Answer E
E is correct, tested on Ubuntu 21.10.
E.....asy
I think is E
tried on ubuntu