Which command allows you to create a new directory?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command that allows you to create a new directory in a Linux environment is "mkdir." This command stands for "make directory" and is widely used in the command-line interface. When executed with a specified name, "mkdir" creates a new directory with that name in the current working location.

For instance, if you want to create a directory called "projects," you would enter the command mkdir projects, and a new directory named "projects" will be created as a subdirectory in your current directory.

The other options listed do not correspond to standard Linux commands for creating directories. "newdir," "createdir," and "dircreate" are not recognized commands in the Linux shell, which is why they would not successfully create a directory when run. Understanding the correct command for this operation is essential for managing file systems effectively in Linux.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy