Study for the TestOut Linux Pro Exam with our engaging quiz. Prepare using our flashcards and comprehensive multiple choice questions, each with hints and explanations to help you succeed. Get ready for your Linux certification today!

Practice this question and more.


Which command is necessary for creating three directories within an existing directory?

  1. mkdir

  2. rmdir

  3. creatdir

  4. dirmake

The correct answer is: mkdir

The command necessary for creating directories in Linux is `mkdir`, which stands for "make directory." This command can be used to create one or more directories at a time. When you want to create three directories within an existing directory, you can use the command followed by the names of the directories you wish to create. For example, executing `mkdir dir1 dir2 dir3` would create three directories named dir1, dir2, and dir3 in the current working directory. The other options do not pertain to creating directories in a Linux environment. The command `rmdir` is used to remove empty directories; `creatdir` and `dirmake` are not recognized commands in standard Linux command-line usage. Therefore, `mkdir` is the only correct command for this action.