How to fix Permission Denied Error in the Terminal and Command Prompt