December 15, 2010

How to create a path of directories

I've often times created a directory structure using a series of mkdir commands. For example,

mike@shiner $ mkdir foo
mike@shiner $ mkdir foo/bar
mike@shiner $ mkdir foo/bar/test

You can create the same directory structure as above by using the -p option.

mike@shiner $ mkdir -p foo/bar/test

1 comment:

  1. Casino Slots, Casino - Dr.MD
    › gaming-slots › gaming-slots Play the latest and greatest slots, casino games and casino games. Play slots 영천 출장마사지 & table games for free or 용인 출장안마 for real 계룡 출장샵 money. Get a 태백 출장안마 no-download 문경 출장샵 sign-up

    ReplyDelete