Permission Denied

While trying to attempt one of the exercise on DNS Lab, I got this permission error. Can anyone help with it, please?

@dhikr, you can switch to root using sudo -i command and then use cat command as shown in screenshot.

Another way is directly using vi editor using sudo vi /etc/hosts

@tgp, thank you it worked.

@dhikr, Glad to hear that issue is resolved. Happy Learning with Kodekloud!

1 Like