How Do I Create a Directory and Subdirectory in Unix?
Contents How Do I Create a Directory and Subfolder in Unix? to Create a New Directory with Multiple Subdirectories You Only Need to Type the Following Command...
How do I create a directory and subfolder in Unix?
To create a new directory with multiple subdirectories you only need to type the following command at the prompt and press Enter (obviously, change the directory names to what you want). The -p flag tells the mkdir command to create the main directory first if it doesn’t already exist (htg, in our case).
How do I create a directory and subdirectories in one step?
To create a directory in MS-DOS or the Windows command line (cmd), use the md or mkdir MS-DOS command. For example, below we are creating a new directory called “hope” in the current directory. You can also create multiple new directories in the current directory with the md command.