Which command is used to create a new directory in Linux?

Prepare for the LPI 101-500 Certification Exam. Utilize flashcards, navigate multiple choice questions, and benefit from hints and explanations. Begin your Linux certification journey today!

The command used to create a new directory in Linux is "mkdir", which stands for "make directory." When you want to organize files or create a new structure within the filesystem, you would use this command followed by the name of the directory you wish to create. For example, executing "mkdir myfolder" would create a new directory called "myfolder" in the current working directory.

The other options are not valid commands for creating directories in Linux. "touch" is used to create empty files or update the timestamp of existing files. "newdir" and "createdir" are not recognized commands in standard Linux environments for directory creation. Understanding the specific use of commands is important for efficient navigation and manipulation of the filesystem in Linux.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy