702-100 無料問題集「Lpi Linux Professional Institute BSD Installation and Software Management 702」
What command creates a new directory? (Specify ONLY the command without any path or parameters.)


正解:
mkdir
Explanation
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]
Explanation
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]