By adding the “-p” option to the mkdir command (p standing for “parents”), you can create entire directory paths on the fly. Where mkdir would normally give you an error about the parent directories not existing, the “-p” option will create them as needed. For example, to make the aforementioned path, you would type:
mkdir -p Photos/201104/Park/Soccer
No comments:
Post a Comment