This tutorial described to you how to create a directory on Unix/Linux-based systems along with various available options. Let’s discuss the Linux mkdir command with useful examples.
Linux cd Command Help and Examples
Syntax
Create a New Directory in Linux
Use mkdir followed by the directory name to be created under the current directory. You can also create a directory under another directory by providing the absolute or relative path.
mkdir Command Examples
Here are some more useful examples of mkdir command on Unix/Linux systems.
Conclusion
In this tutorial, you have learned about the mkdir command in Linux with examples. If you have any other useful examples, please do share in the comments and we will include them in this tutorial. Here the -p tells mkdir to also create parrent directories well.