Which command can you use to create a new directory?

Prepare for the LPI Linux Essentials Test. Use flashcards and multiple choice questions, each with hints and explanations. Start studying today for your certification!

Multiple Choice

Which command can you use to create a new directory?

Explanation:
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.

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