Which command is used to create a new directory?

mkdir

The command used to create a new directory is "mkdir," which stands for "make directory." This command is widely used in various command-line interfaces, including Unix/Linux and Windows systems. When executed, it allows users to set up a new folder within the current working directory or a specified path.

Utilizing "mkdir" is essential for organizing files and directories, as it promotes better file management and accessibility. For instance, if you want to create a project folder, you would type “mkdir ProjectName” in the command line, and a new directory with that name will be established.

The other commands serve different purposes. "rmdir" is used to remove directories, "cd" is employed to change the current directory, and "cp" is used to copy files or directories. Understanding the distinct functions of these commands highlights why "mkdir" is specifically suited for creating a new directory.

rmdir

cd

cp

Want more questions?

All options are one-time payments.

$25.99

30 day premium pass

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$59.99 $171.99 usd

6 month DELUXE pass (most popular)

Everything with the 30 day premium pass FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • Everything included in the premium pass
  • $171.99 usd value for $59.99! You save $106!
  • + Access to the ultimate digital PDF study guide
  • + 6 months of premium pass access
  • + Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy