How to make a directory on Linux (Ubuntu | Debian | Centos) CLI

This is a quick reference guide on how to create a directory on Linux Based Operating Systems.

To make a directory within an existing directory

root@VPS:~# mkdir vps
root@VPS:~# ls

To create multiple sub-directories using -p option.

rroot@VPS:~# mkdir -p vps/test/test1
root@VPS:~# ls
root@VPS:~# cd vps/test/test1/

Thank you for reading and please feel free to leave any feedback.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s