Which command is used to create a new directory in the current location?

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 used to create a new directory in the current location is "mkdir." This stands for "make directory" and is a fundamental command in Unix and Linux systems. When you execute this command followed by the desired name of the new directory, it creates that directory within the present working directory.

For instance, if you wanted to create a directory named "new_folder," you would enter mkdir new_folder, and this would create the "new_folder" directory where your terminal currently points.

Other options do not serve this purpose. "rmdir" is used to remove empty directories, "touch" creates or modifies files rather than directories, and "ls" lists the contents of the current directory. Understanding the specific functionality of these commands is crucial for effective navigation and management of the file system in a Linux environment.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy