Skip to content

Commit

Permalink
Merge pull request #25 from VehementHam/patch-1
Browse files Browse the repository at this point in the history
Add alert for `mkdir -p` in `shell.mdx`.
  • Loading branch information
lleyton authored Mar 4, 2024
2 parents 60af25c + 7574eb5 commit 55d4d3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/content/docs/en/linux/shell.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ To create a new directory, type `mkdir` followed by the path to the directory.
mkdir /home/user/Documents/newdir
```

<Alert type="info">
To create a new directory inside of another new directory (i.e. `.../newdir/newdir2`),
execute `mkdir` with the `-p` flag.
</Alert>

To move or rename a file or directory, type `mv` followed by the path to the file or directory, and then the new path.

```zsh
Expand Down

0 comments on commit 55d4d3e

Please sign in to comment.