Hosting or Servers Logo
Create a Directory Using Linux Command Line
Linux on Monitor

To create a directory in Linux takes just one simple command, mkdir. Using the following will create a directory called 'fred' Just replace 'fred' with whatever name you want to call your directory.

mkdir fred

mkdir command

Now we use the Linux ls command to check the directory was created successfully.


ls After mkdir Command

We can also use the -v argument to create a directory and receive a little more feedback about the process.

mkdir jack -v

This command creates the directory 'jack' and confirms it was created successfully.

mkdir Command Verbose

You Are Leaving Us

This link is being provided as a convenience and for informational purposes only it is not an endorsement or an approval of any of the products, services or opinions of the corporation or organization or individual. bears no responsibility for the accuracy, legality or content of the external site or for that of subsequent links.