Deploy Guest Book App on Kubernetes Task Related

I wanted to use imperative commands to generate a definition templates. I got permission denied message
Example:
kubectl create deployment redis --image=redis --dry-run=client -o yaml > redis-deployment.yaml

Pls any suggestion.

@Effiok Change directory to your home folder and run the command or use absolute path for the yaml file directing it inside the home folder.
The permission issue you are getting may be for the file copy not for the kubectl command.

@mihsan Thanks. I had fix the task. I will try in the next task.