Question : mkdir - p linux
Answered by : bored-coder
The -p flag will create nested directories, but only if they dont exist already.
For example, suppose you have a directory /foo that you have write permissions for.
mkdir -p /foo/bar/baz # creates bar and baz within bar under existing /foo
It is also an idempotent operation, because if you run the same command over again, you will not get an error, but nothing will be created.
Source : https://superuser.com/questions/165157/what-does-the-p-flag-do-in-mkdir-p | Last Update : Wed, 25 Mar 20
Question : mkdir -p shell
Answered by : armando-flores
mkdir newfolder #Creates new folder in current directory
mkdir -p newfolder/subfolder #Creates folder with nested subfolders
Source : | Last Update : Wed, 06 Jul 22