Which UNIX command is used to create a new directory?
Answer:
Explanation:
The mkdir
command in UNIX is used to create a new directory. The syntax is simple: mkdir directory_name
. This command allows users to create directories, which act as containers for files and subdirectories, helping organize the file system.
Managing directories efficiently is a key part of working in any UNIX environment. You’ll often find yourself creating directories to compartmentalize data and organize files by project, task, or type. Creating directories is a routine task that makes navigation easier.
By understanding how to use the mkdir
command, you’ll be able to structure your file system logically and enhance your workflow. Learning the associated commands like rmdir
for removing directories is equally useful in maintaining a clean directory tree.