To create a directory in Linux file system, you can use mkdir command with the Terminal.
In this tutorial, we will learn how to create a directory using mkdir comamnd, with an example.
Following is a step by step process to create a directory in Linux.
- Open Terminal. Using the keyboard, type Ctrl+Alt+T. This opens a new terminal window.
- Navigate to the drive or directory in a drive, in which you would like to create the new directory.
- Use mkdir command with directory name as command line argument to mkdir. You could see that, in the following Terminal, we are trying to create a directory named tutorialkart. The directory is successfully created.
- You can check if the new directory is created, by using ls command.
In this Linux Tutorial, we learned how to create a directory in Terminal using mkdir command.