O'Reilly logo

CompTIA Linux+ Certification Guide by Philip Inshanally

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and removing directories

We can create directories by using another popular command. The mkdir command can be used to create a directory. Let's do a listing, using the ls command, as follows:

[philip@localhost ~]$ lsDesktop Documents Downloads Music Pictures Public Templates Videos[philip@localhost ~]$

 Now, let's create our own directory inside of /home/philip:

[philip@localhost ~]$ mkdir NewTest[philip@localhost ~]$ lltotal 36drwxr-xr-x. 2 philip philip 4096 Jul 31 14:59 Desktopdrwxr-xr-x. 2 philip philip 4096 Jul 31 14:59 Documentsdrwxr-xr-x. 2 philip philip 4096 Jul 31 14:59 Downloadsdrwxr-xr-x. 2 philip philip 4096 Jul 31 14:59 Musicdrwxr-xr-x. 2 philip philip 4096 Jul 31 14:59 Picturesdrwxr-xr-x. 2 philip philip 4096 Jul 31 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required