From e72bc8ea8b2a17a7fbc2944c28e4bc37938c01b9 Mon Sep 17 00:00:00 2001 From: Odin Dutton Date: Tue, 8 Oct 2019 10:16:25 +1100 Subject: [PATCH 1/3] Remove unneeded - --- docs/commands/cd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/commands/cd.md b/docs/commands/cd.md index 377733ba8f..b964be50c9 100644 --- a/docs/commands/cd.md +++ b/docs/commands/cd.md @@ -2,7 +2,7 @@ If you didn't already know, the `cd` command is very simple. It stands for 'change directory' and it does exactly that. It changes the current directory to the one specified. If no directory is specified, it takes you to the home directory. Additionally, using `cd ..` takes you to the parent directory. -## Examples - +## Examples ```shell /home/username> cd Desktop From 77c34acb0318dab540b7e9677211f75e2a6b34c0 Mon Sep 17 00:00:00 2001 From: Odin Dutton Date: Tue, 8 Oct 2019 10:17:46 +1100 Subject: [PATCH 2/3] Whitespace --- docs/commands/cd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/commands/cd.md b/docs/commands/cd.md index b964be50c9..535f1d16eb 100644 --- a/docs/commands/cd.md +++ b/docs/commands/cd.md @@ -21,5 +21,5 @@ If you didn't already know, the `cd` command is very simple. It stands for 'chan /home/username/Desktop/super/duper/crazy/nested/folders> cd /home/username> cd ../../usr /usr> cd -/home/username> +/home/username> ``` From 4d7025569603e20c446dbdf88bc86af4a5c78542 Mon Sep 17 00:00:00 2001 From: Odin Dutton Date: Tue, 8 Oct 2019 10:17:51 +1100 Subject: [PATCH 3/3] Add documentation for `cd -` --- docs/commands/cd.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/commands/cd.md b/docs/commands/cd.md index 535f1d16eb..2e5d933f47 100644 --- a/docs/commands/cd.md +++ b/docs/commands/cd.md @@ -23,3 +23,11 @@ If you didn't already know, the `cd` command is very simple. It stands for 'chan /usr> cd /home/username> ``` + +Using `cd -` will take you to the previous directory: + +```shell +/home/username/Desktop/super/duper/crazy/nested/folders> cd +/home/username> cd - +/home/username/Desktop/super/duper/crazy/nested/folders> cd +```