Hello, How do we redirect/write the output to a file in the exam? I faced ‘permission denied’ issue.
Did you try from the root user?
as root user, I could not run the kubectl commands. I tried a couple of options with sudo and sudo -i, but wasn’t successful there. In the end I manually opened the files in vi as root user and inserted the answer. Wasted some of the time. What is the right approach?
Thank you for your response.
<file> | sudo tee -a <to_path>
e.g: kodekloud_file | sudo tee -a /opt/k8s.txt
TY @Tonnie I
You are welcome