Which command can you use to create a new directory?

Prepare for the LPI Linux Essentials Exam with our comprehensive quiz. Study with interactive flashcards and multiple choice questions, with detailed hints and explanations for each. Ace your exam with confidence!

The command to create a new directory in Linux is 'mkdir', which stands for "make directory." When you execute this command followed by the desired name of the directory, it will create a new folder at the specified location in the file system. For example, using 'mkdir myfolder' would create a directory named 'myfolder' in the current working directory.

The other commands do not fulfill the purpose of creating a new directory. 'rmdir' is used to remove empty directories, 'newdir' is not a standard command in Linux, and 'touch' is typically used to create new empty files or update the timestamp of existing files. Therefore, 'mkdir' is the correct and appropriate command for the task of directory creation.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy