How do you create a new directory called "flower" in UNIX?

  1. newdir flower

  2. mkdir flower

  3. crdir flower

  4. crtdir flower


Correct Option: B
Explanation:

To create a new directory called "flower" in UNIX, you need to use the "mkdir" command. This stands for "make directory" and is used to create a new directory in the current location.

Let's go through each option and explain why it is right or wrong:

A. newdir flower: This option is incorrect. There is no "newdir" command in UNIX. The correct command to create a new directory is "mkdir".

B. mkdir flower: This option is correct. By typing "mkdir flower", a new directory called "flower" will be created in the current location.

C. crdir flower: This option is incorrect. There is no "crdir" command in UNIX. The correct command to create a new directory is "mkdir".

D. crtdir flower: This option is incorrect. There is no "crtdir" command in UNIX. The correct command to create a new directory is "mkdir".

Therefore, the answer is: B. mkdir flower

Find more quizzes: