...
Just knowing what directory we're in is nice, but we also want to know what's inside it! To list the contents, we'll use the ls
command:
...
language | bash |
---|---|
theme | DJango |
...
. For some reason, Confluence won't display just ls
properly😅, but you should still run it here.
Note that ls
prints the entire contents of the directory to your terminal. ls
also comes with some important arguments that we can pass. In particular, these arguments begin with a dash ("-"); arguments that begin with these are often known as flags. They don't add any new data, but instead send a signal to the command that modifies how it executes.
...
Code Block | ||||
---|---|---|---|---|
| ||||
mkdir c2s2 |
Now let's ls
again:
...
language | bash |
---|---|
theme | DJango |
...
.
You should be able to see your new directory named c2s2
. To move into a directory, we use the cd
command, with an argument of the directory that we want to move into:
...