I am following a tutorial for Linux and I am a Windows user. I need to know, how can I execute code in Ubuntu terminal?
Here is what the exercise say:
The directory will now have 4 keys - private/public pairs of ZSK and KSK. We have to add the public keys which contain the DNSKEY record to the zone file. The following for loop will do this.
for key in `ls Kexample.com*.key` do echo "\$INCLUDE $key">> example.com.zone done
Is there a way to execute this code from terminal?
Following the answer from @Karl I get permission denied. I use
sudo in normal commands like
mv but how to deal with this in multiple lines and commands? here is my code listing:
x@mypc:/var/cache/bind$ for key in `ls Kcom*.key` > do > echo "\$INCLUDE $key" >> com.zone > done bash: com.zone: Permission denied bash: com.zone: Permission denied