The command mkdir (short for make directory) creates a new directory with the specified name. The command takes one or more arguments, which are the names of the directories to be created. If the name contains spaces or other special characters, it should be enclosed in quotes. For example, mkdir “My Documents” creates a directory named My Documents. The command also accepts some options, such as -p, which creates the parent directories if they do not exist, or -m, which sets the permissions of the new directory. For example, mkdir -p -m 755 /usr/local/bin creates the directory /usr/local/bin and its parent directories /usr and /usr/local, and sets the permissions of /usr/local/bin to 755 (read, write and execute for the owner, read and execute for the group and others). References:
[mkdir(1) - FreeBSD Manual Pages]
[How to Create a Directory in Linux - Linuxize]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit