mkdir -p

March 9th, 2006  |  Published in old and busted  |  1 Comment

arrakis:~ mph$ man mkdir

MKDIR(1)          BSD General Commands Manual         MKDIR(1)


   mkdir -- make directories


   mkdir [-pv] [-m mode] directory_name ...


 -p      Create intermediate directories as required.  If this option is

         not specified, the full path prefix of each operand must already

         exist.  On the other hand, with this option specified, no error

         will be reported if a directory given as an operand already

         exists.  Intermediate directories are created with permission

         bits of rwxrwxrwx (0777) as modified by the current umask, plus

         write and search permission for the owner.

You’d think I’d remember that by now, but it’s one of those things I don’t seem to be able to retain. Maybe I will now. I can’t conceivably be trying to write the same thing to the same bad block over and over, but maybe a change of context will help.

Leave a Response

© Michael Hall, licensed under a Creative Commons Attribution-ShareAlike 3.0 United States license.