From d375bcc068612a25d4c285437ab2be085917b59d Mon Sep 17 00:00:00 2001 From: Abdul Karim Date: Sat, 14 Feb 2026 14:24:15 +0500 Subject: [PATCH] 3.8 Changing Directories: Add example to return to home Added instructions for navigating to the home directory using 'cd'. --- src/the_terminal/changing_directories.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/the_terminal/changing_directories.md b/src/the_terminal/changing_directories.md index ae15af6..dd35939 100644 --- a/src/the_terminal/changing_directories.md +++ b/src/the_terminal/changing_directories.md @@ -22,4 +22,13 @@ $ pwd /Users ``` -[^cd]: Short for "change directory" \ No newline at end of file +If you want to go to your "home" directory, you do not pass any arguments or write `~`. +```bash +$ pwd +/home/user/Documents +$ cd +$ pwd +/home +``` + +[^cd]: Short for "change directory"