From b75f226a845495064c1d8075c3be786e58ca67e4 Mon Sep 17 00:00:00 2001 From: VehementHam <75701545+VehementHam@users.noreply.github.com> Date: Fri, 1 Mar 2024 12:11:03 -0600 Subject: [PATCH 1/2] Add notice for `mkdir -p`. --- src/content/docs/en/linux/shell.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/content/docs/en/linux/shell.mdx b/src/content/docs/en/linux/shell.mdx index 06ab6d85..794343cc 100644 --- a/src/content/docs/en/linux/shell.mdx +++ b/src/content/docs/en/linux/shell.mdx @@ -78,6 +78,11 @@ To create a new directory, type `mkdir` followed by the path to the directory. mkdir /home/user/Documents/newdir ``` + + To create a new directory inside of another new directory (ie. `.../newdir/newdir2`), + execute `mv` with the `-p` flag. + + 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 From 7574eb5f6015f014b9f43062ddb90e4d0f687558 Mon Sep 17 00:00:00 2001 From: VehementHam <75701545+VehementHam@users.noreply.github.com> Date: Fri, 1 Mar 2024 12:14:36 -0600 Subject: [PATCH 2/2] Fix typos. --- src/content/docs/en/linux/shell.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/en/linux/shell.mdx b/src/content/docs/en/linux/shell.mdx index 794343cc..9887cd08 100644 --- a/src/content/docs/en/linux/shell.mdx +++ b/src/content/docs/en/linux/shell.mdx @@ -79,8 +79,8 @@ mkdir /home/user/Documents/newdir ``` - To create a new directory inside of another new directory (ie. `.../newdir/newdir2`), - execute `mv` with the `-p` flag. + To create a new directory inside of another new directory (i.e. `.../newdir/newdir2`), + execute `mkdir` with the `-p` flag. To move or rename a file or directory, type `mv` followed by the path to the file or directory, and then the new path.