Task: Linux Archives - Failed

Recently I completed a Task named: Lunux Archives, I am sure I did it correctly, but result shows it failed, could someone correct where it went wrong, Thanks.
Task was to create an archive of kirsty of name: kirsty.tar.gz and move it into the another folder /home and I did so, please check below output for your reference and let me know where it went wrong, Thanks!

[natasha@ststor01 data]$ tar -cf kirsty.tar.gz kirsty
[natasha@ststor01 data]$ ls
kirsty kirsty.tar.gz
[natasha@ststor01 data]$
[natasha@ststor01 data]$ sudo mv kirsty.tar.gz /home/

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for natasha:
[natasha@ststor01 data]$ cd /home
[natasha@ststor01 home]$ ls
ansible kirsty.tar.gz natasha
[natasha@ststor01 home]$
[natasha@ststor01 home]$ thor@jump_host /$ Connection to host01 clos

Hi @Dinesh1202

You are asked to create a .tar.gz archive which means a tar archive with gzip compression. The command you used to create the archive is incorrect tar -cf command will create a simple tar archive without any compression even if you use extension .tar.gz. You had to use z option along with that for creating gzip compressed archive.

1 Like