#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Command Line : Sooooo Basic. Takes one second.


    Might seem stupid to you... but I do not know anything about programming for now...

    Anyway I was practicing command lining
    and see a code

    $ mkdir -p temp/stuff/things/frank/joe/alex/john


    I know what that means without "-p"
    "-p" does what in this line?

    I was googling about this only to find it not to recognize the hyphen...

    Please help me.
    Last edited by weonthewave; January 1st, 2013 at 02:20 PM. Reason: mistype
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,709
    Rep Power
    480
    If you're on a unix system, mkdir -p creates the intervening directories if they don't exist.
    For help
    $ man mkdir

    If you're on a DOS system, ask someone else. To me, your question is quasi-ambiguous.
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0
    Originally Posted by b49P23TIvg
    If you're on a unix system, mkdir -p creates the intervening directories if they don't exist.
    For help
    $ man mkdir

    If you're on a DOS system, ask someone else. To me, your question is quasi-ambiguous.
    Oh thanks. It makes sense in Windows too.
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Location
    Tewksbury, MA
    Posts
    31
    Rep Power
    2
    Originally Posted by weonthewave
    I was googling about this only to find it not to recognize the hyphen...

    Please help me.
    Just try searching without the hypen. Top hit is a Wiki page that explains all about it.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,400
    Rep Power
    1688
    On the assumption you are at a *nix shell prompt, you can always try the man command - just specify which command you are after,:
    Code:
    man mkdir
    Some admins set up the man pages with key word searching, so you may be able, if you are not sure of the exact command, to find it with man -k and a search word. I just tried man -k directory which showed some useful hits, but not a direct hit, I then tried
    Code:
    man -k dir
    and lo ...
    ... snip ...
    helpztags (1) - generate the help tags file for directory
    install-info (8) - create or update entry in Info dir file
    ls (1) - list directory contents
    mkdir (1) - make directories
    mkfontdir (1) - create an index of X font files in a directory
    mklost+found (8) - create a lost+found directory on a mounted Linux second extended file system
    modprobe.conf (5) - Configuration file/directory for modprobe
    mountpoint (1) - see if a directory is a mountpoint
    ... snip ...
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc

IMN logo majestic logo threadwatch logo seochat tools logo