What does the `mkdir` command do?

QuestionsQuestions8 SkillsProBasic Files OperationsAug, 14 2025
0197

The mkdir command is used to create new directories in a file system. You can specify the name of the directory you want to create, and it will be created in the current working directory or at a specified path.

For example, to create a directory named example, you would use:

mkdir example

You can also use the -p option with mkdir to create parent directories as needed. For instance:

mkdir -p /path/to/new/directory

This command will create the entire directory structure if it doesn't already exist.

0 Comments

no data
Be the first to share your comment!