I was watching a module 3 in Training. When I type and enter tar xvzf splunk-8.0.3-a6754d8441bf-Linux-x86_64.tgz -C /opt
following the video. It shows an error (tar: splunk: Cannot mkdir: Permission denied). How can I fix this issue?
You can try sudo tar...
You can either ask for permission, or you can extract it to another folder in which you have permission to write, e.g., ~/opt instead of /opt
It seems you don't have proper permissions. You need sudo permissions or contact a system administrator