Learn to make directories at the Linux command line.
Linux mkdir command summary with examples (3:30)
Videos can also be accessed from the YouTube Playlist.
Our twenty-second word, or command to memorize is
mkdir from the category
mkdir allows you to make directories.
Recall from the last video (tutorial) we created files in other directories, now we'll create directories in other directories.
Before we start, it helps to think about commands as mini programs and
most follow this structure:
command -option(s) argument(s).
mkdir command has
6 options and the argument is the name of the one or
multiple directories you'd like to create.
Like most commands, help is available, here with double-dash
And for when we get to a discussion on permissions, just remember you
can set up permissions at the same time, here using
So why is
mkdir an important command?
Well, Linux is a text-based system, so you'll need to stay organized by
creating directories to hold your stuff.
And now you know how to do that.
Okay, the best way to embed this in your memory is by typing in your own terminal window.
Find this on your Mac using a program called Terminal. On Linux use Terminal or Konsole, and currently Microsoft is adding this functionality to Windows.
Here we go, let's make a directory within the current directory.
ls, or list files, using dash
-aog to confirm.
Ok, here, single dot
. refers to this
directory, double dot
.. refers to
directory one above. The
d out front
indicates that it is a directory, and
l refers to the symbolic link which we
set up in the last video (tutorial). Now we're getting places.
Next, make two directories within that directory using
-v for that confirmation message.
And then dive right in there using
ls to make sure we did it
Okay now you know how to use
And you know the syntax for commands, options and arguments.
One last tip about the
Making directories, as you can imagine, is a very common task, as are
other navigational tasks, so we'll stick with the navigation theme
over the next several videos.
Okay, thanks for visiting today. I hope this was a fun
introduction to the
For an overview of the 100 videos, the 8 quizzes, a cheat sheet, the categories and a Q&A section, visit:
Here's a YouTube subscription button, if you like video tutorials to go along with the text.
lncommand, hit Back.
cpcommand, click Next.