Skip to content

Commit 9a24570

Browse files
committed
Merge pull request #196 from sjmarshy/update-mkdir
add -p flag to mkdir
2 parents ee711b6 + f0b8844 commit 9a24570

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

command-line/introduction/tutorial.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,12 @@ $ mkdir temp
9494
into the terminal. Now use `ls` to see the contents of the home directory. You should see a new folder, temp there. You just created a new folder! As it's name suggests, mkdir creates directories. What if we wanted to create a directory inside a directory? `cd` into temp and type:
9595

9696
```bash
97-
$ mkdir stuff/bits
97+
$ mkdir -p stuff/bits
9898
```
9999

100-
No do an `ls` and you should see stuff retruned. `cd` into stuff and do another `ls`. Inside stuff, the directory bits was created. What if you wanted to create files?
100+
No do an `ls` and you should see stuff retruned. `cd` into stuff and do another `ls`. Inside stuff, the directory bits was created.
101+
102+
What if you wanted to create files?
101103

102104
### `touch` or create files
103105

0 commit comments

Comments
 (0)