Thread (19 messages) 19 messages, 3 authors, 2024-03-18

[PATCH v2 4/6] intro.1: Demonstrate special cases of the cd command

From: Jeremy Baxter <hidden>
Date: 2024-03-17 08:11:00
Subsystem: the rest · Maintainer: Linus Torvalds

---
 man1/intro.1 | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
diff --git a/man1/intro.1 b/man1/intro.1
index f0a8d98e0..8102640ba 100644
--- a/man1/intro.1
+++ b/man1/intro.1
@@ -213,6 +213,25 @@ Try using the
 and
 .I pwd
 commands in different ways.
+.I cd .
+changes the current directory to the path to the current directory;
+this does nothing.
+.I cd ..
+changes the current directory to the parent directory of the current
+directory.
+For instance, if our current directory is
+.I /home/aeb
+and we change the current directory to
+.IR .. ,
+the current directory will now be
+.IR /home .
+.I cd /
+changes the current directory to the root of the hierarchy.
+.I cd \[ti]
+changes the current directory to the user's home; if I am logged in as
+.IR aeb ,
+this command will change my current directory to
+.IR /home/aeb .
 .SS Directories
 The command
 .I mkdir
-- 
2.44.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help