From 24aa00d4141c472831986cbcafcce8ac6fff0711 Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Sun, 13 Mar 2022 20:11:17 +1000 Subject: [PATCH] cd: page update (#7875) * Refresh cd page: - group examples - add new example with ~user - refresh grammar * Fix syntax error * Use "username" instead of "user_name" Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> --- pages/common/cd.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pages/common/cd.md b/pages/common/cd.md index 93e30b0e4e..ca356d6200 100644 --- a/pages/common/cd.md +++ b/pages/common/cd.md @@ -3,18 +3,22 @@ > Change the current working directory. > More information: . -- Go to the given directory: +- Go to the specified directory: `cd {{path/to/directory}}` -- Go to the home directory of the current user: - -`cd` - - Go up to the parent of the current directory: `cd ..` +- Go to the home directory of the current user: + +`cd` + +- Go to the home directory of the specified user: + +`cd ~{{username}}` + - Go to the previously chosen directory: `cd -`