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

Omar Farag
Omar Farag
4,573 Points

What does -p do in CMS?

The title says it all.

Steven Parker
Steven Parker
231,236 Points

...except what CMS is. Do you mean "Content Management System"? If so, which one?

2 Answers

Sue Dough
Sue Dough
35,800 Points

Hi Omar,

This is a tough question because you aren't being specific enough. -p is in a lot of linux programs. Perhaps the most common use I have seen is:

mkdir -p

It can created nested directories if there not already created. Its in a lot of install scripts.

You can read more here: http://superuser.com/questions/165157/what-does-mkdir-p-flag-do

If that doesn't help answer your question please be specific what Linux application your talking about. You have to remember that tons of programs offer different paramaters. So -p will do something completely else in another program.

Also you can always run the manual page for most Linux programs like this:

man mkdir

and one of the first things that shows is the paramaters and you can see:

       -p, --parents
              no error if existing, make parent directories as needed
Omar Farag
Omar Farag
4,573 Points

Sorry, I meant the linux shell.