Quick Tip: Create a Whole Dir Path with One Stroke
The UNIX mkdir has a -p option that will automatically make any parent folders that do not already exist. So, instead of doing this:
mkdir a mkdir a/b mkdir a/b/c
just do this:
mkdir -p a/b/c
Not only is this a timesaver, it’s also considered good form. It’s more succinct, and it better expresses the idea that the a and b folders might already exist.