RHEL Linux - Red Hat System Administration Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

Practice this question and more.


Which command creates a new directory in the current path?

  1. md

  2. mkdir

  3. makedir

  4. newdir

The correct answer is: mkdir

The command that creates a new directory in the current path is "mkdir." This command is a standard utility in Unix and Linux systems and is derived from the phrase "make directory." When executed, mkdir takes the specified directory name as an argument and creates a new directory under the current working directory or in the specified path. For example, running "mkdir newfolder" will create a directory named "newfolder" in the directory where the command is executed. This command can also be used with options to create parent directories if they do not exist, by using "mkdir -p path/to/directory," which will create the entire directory path specified. The other choices do not correspond to recognized commands for creating directories in Linux systems. "md" is a command associated with DOS and some Windows environments, "makedir" is not a valid command in Unix/Linux, and "newdir" does not exist as a command to create directories. Hence, among all the provided options, "mkdir" is the only valid command for this task in the context of Red Hat Linux administration.