How to create a directory with mkdir in CentOS

How to create a directory with mkdir in Centos

In many cases, you will have to create a directory manually on your dedicated server.
All those commands should be executed in command line.

Create one directory

mkdir directory

Create many directories

mkdir directory1 directory2 directory3
directory1 directory2 directory3

Create parent directory with flag -p

mkdir -p directory1/sub1/sub2

Colo-Serv Communications has written 20 articles

Premium Dedicated Server in Canada

Leave a Reply

Your email address will not be published. Required fields are marked *

19 + 15 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>