From d279f8e4137eaf6cd9c8dbd8218d714e54bee22e Mon Sep 17 00:00:00 2001 From: Amit Sharma <7789327+amitech@users.noreply.github.com> Date: Tue, 16 Oct 2018 17:00:13 +0530 Subject: [PATCH] Added new command 'mkdir' (#18796) --- .../pages/guide/english/bash/bash-mkdir/index.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/client/src/pages/guide/english/bash/bash-mkdir/index.md b/client/src/pages/guide/english/bash/bash-mkdir/index.md index ee961411e1..f6103d174b 100644 --- a/client/src/pages/guide/english/bash/bash-mkdir/index.md +++ b/client/src/pages/guide/english/bash/bash-mkdir/index.md @@ -4,10 +4,19 @@ title: Bash mkdir ## Bash command: mkdir +**Creates a directory** -**Make a Directory** ,for example `mkdir hello`. +``` +mkdir directory_name +``` -**Creating missing directories in the path**, let's say we need to create a directory `dir` in the path a/b/c/dir, but directory `b` and `c` don't exist. In this case, `mkdir -p a/b/c/dir` will create the missing directories in the path. +Make directory(ies) with the provided name if they do not already exist. + +Commonly used options: +- `-p` no error if existing, make parent directories as needed. +- `-v` prints message for each created directory. + +Let's say we need to create a directory `dir` in the path `a/b/c/dir`, but directory `b` and `c` don't exist. In this case, `mkdir -p a/b/c/dir` will create the missing directories in the path. ### More Information: -* [Wikipedia](https://en.wikipedia.org/wiki/Mkdir) +* [Wikipedia - Mkdir](https://en.wikipedia.org/wiki/Mkdir)