Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Console Foundations Getting Started with the Console Moving and Deleting Files

Ariel Espinal
Ariel Espinal
5,451 Points

Another way to memorize the -p flag to create folder?

What is -p shorthand for?

Ariel Espinal
Ariel Espinal
5,451 Points

awesome thank you!

LaVaughn Haynes
LaVaughn Haynes
12,397 Points

Gunhoo is correct. From the command like you can also type man followed by a command. It will print out instructions for how the command works and what the flags are

man mkdir

it will output:

 -p, --parents
              no error if existing, make parent directories as needed

1 Answer

Gunhoo Yoon
Gunhoo Yoon
5,027 Points

It is shorthand for parents. Make parent directory if needed.

LaVaughn Haynes
LaVaughn Haynes
12,397 Points

I changed your comment to an answer so you can get credit