TestOut Linux Pro Practice Test 2025 – All-in-One Guide to Master Your Certification!

Image Description

Question: 1 / 400

Which command is used to create a new directory in Linux?

mkfile

mkdir

The command `mkdir` is the correct choice for creating a new directory in Linux. This command stands for "make directory," and it is a fundamental command in the Linux operating system used to create one or more directories. When you issue the `mkdir` command followed by the name of the directory you wish to create, the system generates that directory in the current working path.

For instance, executing `mkdir new_folder` will create a directory named `new_folder` in your current location. This command can also be used with various options to enable additional functionalities, such as creating nested directories by using the `-p` option, which allows for parent directories to be created as needed.

The other options are not valid commands for creating directories in a typical Linux environment. For example, `mkfile` is generally not a standard command used in Unix/Linux systems—it is often associated with creating files, not directories. The commands `createdir` and `newdir` do not exist in standard Linux command sets. Thus, the only accurate command in this context is `mkdir`.

Get further explanation with Examzify DeepDiveBeta

createdir

newdir

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy