0

I'm very new at command line and am having a problem with creating basic directories.

I want to create a directory (let's call it "Blue") inside my documents folder. I am in my Home directory (where my documents folder lives) and expected the following command to do what I wanted

mkdir Blue Documents

However, I get an error message that says "mkdir: Documents: File Exists" and my "Blue" directory is just created under my Home directory.

How should I alter my command to specify that I want the "Blue" directory created under my Documents directory? I am using Terminal on OS X

1
  • CD Documents.. mkdir Blue Commented May 28, 2016 at 19:42

2 Answers 2

1

Your syntax is trying to create the Blue and Documents directory right in the home directory.

You can either cd inside the Documents directory or use this syntax:

mkdir Documents/Blue
Sign up to request clarification or add additional context in comments.

Comments

0

try this:

mkdir Documents/Blue

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.