Multiple choice technology

How do you create a new directory called "sample"?

  1. newdir sample

  2. mkdir sample

  3. crdir sample

  4. makedir sample

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The 'mkdir' command creates directories in Unix/Linux systems. 'mkdir sample' creates a new directory named 'sample' in the current location. Commands like 'newdir', 'crdir', and 'makedir' are not standard Unix commands. The name 'mkdir' stands for 'make directory'.