I was doing the Linux Archive task.
It asked me to create archive of /data/siva . the path /data/siva wasn’t exist.
[natasha@ststor01 ~]$ sudo ls /data/siva
ls: cannot access /data/siva: No such file or directory
So I created a sample directory without any contents , and created an archive of it
[natasha@ststor01 ~]$ sudo tar czf /home/siva.tar.gz /data/siva
[natasha@ststor01 ~]$ sudo ls /home
ansible natasha siva.tar.gz
The result showed me there were no content in my created tar file so the task failed.
There were no content because the path didnt even exist.
Please check.