Permission denied with mkdir and touch

I just started the lesson with the command line, and downloaded Git Bash, the lesson told me to make a test directory with git bash using:

$ mkdir test
mkdir: cannot create directory ‘test’: Permission denied

I was able to mkdir in the Codecademy command-line interface but with git bash it is denying access.
I am confused??

Hi there, and welcome to the forums!

If you’re getting “Permission denied”, then I guess the user that you’re running git bash as doesn’t have the necessary permissions to create a folder in that location.

You could try changing to another directory, and trying again?

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.