Linux mkdir command
The mkdir command is used for creating new directories (also known as folders) on Unix/Linux systems. This is basic Linux command for creating the directory structure on a filesystem.
Syntax:
Example
Let’s create a directory named testdir in the current directory. Run below from the command line.
The directory is created now. Use the ls command to see the created directory.
ow, create another directory inside some other directory by specifying the full path.
In case any parent directory doesn’t exist, the above command will fail. You can use -p the
option to create any parent directory if not exists.
You can also specify the permission for the directory with mkdir command during the creation.
More Examples
Here are some more examples of mkdir command, which is useful for creating the directory structure.
Create two directories under /tmp directory in a single command
Now try the below command. This will do the same as the above command do.
0 Comments
CAN FEEDBACK
Emoji