Question: How Do I Create a Subdirectory in a Directory in Linux?
Contents If You Want to Create a Directory Containing Several Subdirectories, or a Directory Tree, Using the Command Line in Linux, Generally You Have to Use...
Contents
If you want to create a directory containing several subdirectories, or a directory tree, using the command line in Linux, generally you have to use the mkdir command several times.
How do I create a subdirectory in terminal?
LAB: make a subdirectory and then enter it
- open Terminal.
- make a new subdirectory using mkdir code.
- change into that directory using cd code.
- list its contents using ls (and note that itβs empty)
How do I create a subfolder in mkdir?
Creation of an entire directory tree can be accomplished with the mkdir command, which (as its name suggests) is used to make directories. The -p option tells mkdir to create not only a subdirectory but also any of its parent directories that do not already exist.