From 425aeae788b0a941d5703b6af3b92d8291c4ac88 Mon Sep 17 00:00:00 2001 From: Kaushik-Iyer <84177184+Kaushik-Iyer@users.noreply.github.com> Date: Sat, 1 Oct 2022 14:15:44 +0530 Subject: [PATCH 1/8] Create cd.md --- cd/cd.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cd/cd.md diff --git a/cd/cd.md b/cd/cd.md new file mode 100644 index 0000000..ea0badf --- /dev/null +++ b/cd/cd.md @@ -0,0 +1,4 @@ +# cd + +## Overview +`cd` is a Unix command to move a directory. It will move to the path specified by absolute or relative path. From ab532326bd49d0aa6f9ad8c20b2adc3a19f4b2ce Mon Sep 17 00:00:00 2001 From: Kaushik-Iyer <84177184+Kaushik-Iyer@users.noreply.github.com> Date: Sat, 1 Oct 2022 14:16:15 +0530 Subject: [PATCH 2/8] Update cd.md --- cd/cd.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cd/cd.md b/cd/cd.md index ea0badf..b48f3d5 100644 --- a/cd/cd.md +++ b/cd/cd.md @@ -2,3 +2,8 @@ ## Overview `cd` is a Unix command to move a directory. It will move to the path specified by absolute or relative path. + +## Syntax +``` +cd [Folder Name] +``` From ec771d106ebf9d9611e8236c378e62158d9209ee Mon Sep 17 00:00:00 2001 From: Kaushik-Iyer <84177184+Kaushik-Iyer@users.noreply.github.com> Date: Sat, 1 Oct 2022 14:17:45 +0530 Subject: [PATCH 3/8] Delete cd.txt --- cd/cd.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 cd/cd.txt diff --git a/cd/cd.txt b/cd/cd.txt deleted file mode 100644 index ed20cec..0000000 --- a/cd/cd.txt +++ /dev/null @@ -1 +0,0 @@ -"cd" is a Unix command to move a directory. It will move to the path specified by absolute or relative path. From 2f4ed65c9aa494eb59fe3f2dabc5e0d19631b76a Mon Sep 17 00:00:00 2001 From: Kaushik-Iyer <84177184+Kaushik-Iyer@users.noreply.github.com> Date: Sat, 1 Oct 2022 14:20:54 +0530 Subject: [PATCH 4/8] Update cd.md --- cd/cd.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cd/cd.md b/cd/cd.md index b48f3d5..86db5e0 100644 --- a/cd/cd.md +++ b/cd/cd.md @@ -7,3 +7,17 @@ ``` cd [Folder Name] ``` +## Different functionalities of cd command : + + cd /: this command is used to change directory to the root directory, The root directory is the first directory in your filesystem hierarchy. + ``` + cd / + ``` + + cd dir_1/dir_2/dir_3: This command is used to move inside a directory from a directory + + ``` + cd dir_1/dir_2/dir_3 + ``` + + From 3a2861d7a74c1e1e1302a6b2f0b8b52993438eae Mon Sep 17 00:00:00 2001 From: Kaushik-Iyer <84177184+Kaushik-Iyer@users.noreply.github.com> Date: Sat, 1 Oct 2022 14:26:34 +0530 Subject: [PATCH 5/8] Update cd.md --- cd/cd.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/cd/cd.md b/cd/cd.md index 86db5e0..6bffb36 100644 --- a/cd/cd.md +++ b/cd/cd.md @@ -9,15 +9,29 @@ cd [Folder Name] ``` ## Different functionalities of cd command : - cd /: this command is used to change directory to the root directory, The root directory is the first directory in your filesystem hierarchy. +cd /: this command is used to change directory to the root directory, The root directory is the first directory in your filesystem hierarchy. ``` cd / ``` - cd dir_1/dir_2/dir_3: This command is used to move inside a directory from a directory +cd dir_1/dir_2/dir_3: This command is used to move inside a directory from a directory ``` cd dir_1/dir_2/dir_3 ``` +cd ~ : this command is used to change directory to the home directory. + ``` + cd ~ + ``` + +cd : this command also works the same as the cd ~ command. + ``` + cd + ``` +cd “dir name”: This command is used to navigate to a directory with white spaces.Instead of using double quotes we can use single quotes then also this command will work. + +``` +cd "dir name" +``` From 950bfa8989707e259e18beebc12d465a6711876a Mon Sep 17 00:00:00 2001 From: Kaushik-Iyer <84177184+Kaushik-Iyer@users.noreply.github.com> Date: Sat, 1 Oct 2022 14:33:38 +0530 Subject: [PATCH 6/8] Update cd.md --- cd/cd.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cd/cd.md b/cd/cd.md index 6bffb36..45a35dd 100644 --- a/cd/cd.md +++ b/cd/cd.md @@ -9,28 +9,28 @@ cd [Folder Name] ``` ## Different functionalities of cd command : -cd /: this command is used to change directory to the root directory, The root directory is the first directory in your filesystem hierarchy. +**cd /**: This command is used to change directory to the root directory, The root directory is the first directory in your filesystem hierarchy. ``` cd / ``` -cd dir_1/dir_2/dir_3: This command is used to move inside a directory from a directory +**cd dir_1/dir_2/dir_3**: This command is used to move inside a directory from a directory ``` cd dir_1/dir_2/dir_3 ``` -cd ~ : this command is used to change directory to the home directory. +**cd ~** : This command is used to change directory to the home directory. ``` cd ~ ``` -cd : this command also works the same as the cd ~ command. +**cd**: this command also works the same as the cd ~ command. ``` cd ``` -cd “dir name”: This command is used to navigate to a directory with white spaces.Instead of using double quotes we can use single quotes then also this command will work. +**cd “dir name”**: This command is used to navigate to a directory with white spaces.Instead of using double quotes we can use single quotes then also this command will work. ``` cd "dir name" From 6a5c089467c94a1b3290f0ab1be87688a566f142 Mon Sep 17 00:00:00 2001 From: Kaushik-Iyer <84177184+Kaushik-Iyer@users.noreply.github.com> Date: Sat, 1 Oct 2022 14:36:15 +0530 Subject: [PATCH 7/8] Update cd.md --- cd/cd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cd/cd.md b/cd/cd.md index 45a35dd..fa4513f 100644 --- a/cd/cd.md +++ b/cd/cd.md @@ -20,7 +20,7 @@ cd [Folder Name] cd dir_1/dir_2/dir_3 ``` -**cd ~** : This command is used to change directory to the home directory. +__cd ~__ : This command is used to change directory to the home directory. ``` cd ~ ``` From 19631114b55a651d6eca254ba646ffb305e603b4 Mon Sep 17 00:00:00 2001 From: Kaushik-Iyer <84177184+Kaushik-Iyer@users.noreply.github.com> Date: Sat, 1 Oct 2022 14:38:02 +0530 Subject: [PATCH 8/8] Update cd.md --- cd/cd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cd/cd.md b/cd/cd.md index fa4513f..f8fefe7 100644 --- a/cd/cd.md +++ b/cd/cd.md @@ -20,7 +20,7 @@ cd [Folder Name] cd dir_1/dir_2/dir_3 ``` -__cd ~__ : This command is used to change directory to the home directory. +__cd__~ : This command is used to change directory to the home directory. ``` cd ~ ```