From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6814EEA9 for ; Sun, 17 Mar 2024 08:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710663063; cv=none; b=Va5YvZID/zk4CC2bXoGY+VlHtq2LAkvkmvWH7zR/4ElpLjeLtNwr32E6G729/4mhfwcjzNx3n9zf564Z7sQxYscFAKfkxZVsBYYE0ijjYqjYaBDLr0yzie+3AY4jNwyCXPYRXDEiik3G/QGa2x3JoItcyr5GeZ8fmG94cxfk7m0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710663063; c=relaxed/simple; bh=i78GjFRmNYUo7Gxy9lt5fPfz0fL02A6Q5gMElgW9B4E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KZuZ5g7NMQDhmaSO43ony/kPFkxxJ16HlzauKW+eXRP25jOaqSuY3IIcmL9JAWpxXcZkD2r0YMW6T3cJKXLtEiSPm+0MLm1io3HIDdabmIg/txo/kAR1/6JlCid5+Xj0Fnhnx/AUXEDC61XIsJkfkGqBI2R/3USGA56FXobsGes= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org; spf=pass smtp.mailfrom=disroot.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b=iIdvpRUz; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=disroot.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b="iIdvpRUz" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 76957413B5; Sun, 17 Mar 2024 09:10:59 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I6sG8NW83TIn; Sun, 17 Mar 2024 09:10:58 +0100 (CET) From: Jeremy Baxter DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1710663058; bh=i78GjFRmNYUo7Gxy9lt5fPfz0fL02A6Q5gMElgW9B4E=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iIdvpRUzfTSNTh8cjeAq+DUSQeacFSMXLjCv0KsjKTipLgxAQyOiGD9j3iRLIMVyl lz6pw4ST906F1VKsYwloczx4/BYRgaDMj6rytq7f07Vyl+nWsf/+lVqW0vvsHf/6wi ktQpa2jrYpzhEK9MVJFOhEO3cpjvcbkT1SIxaz7VzdLwwoEkxM2apQzGin6ihMtY0X xutxXLcoqBUn4IlFcHEWneKZQJGol8Fu+itmoShhOJXgO9Kc0gXDZwssnE2kD7AFXg s2emcyBeCNPeB47v8Oeg+Hg6Zp4Rapi0enK2b7dcdWPXleMwlzpH6kM/Bi5zBUsqAd w5rlu/nf6yrYg== To: alx@kernel.org Cc: linux-man@vger.kernel.org, Jeremy Baxter Subject: [PATCH v2 4/6] intro.1: Demonstrate special cases of the cd command Date: Sun, 17 Mar 2024 21:08:32 +1300 Message-ID: <20240317080850.28564-7-jtbx@disroot.org> In-Reply-To: <20240317080850.28564-3-jtbx@disroot.org> References: <20240317080850.28564-3-jtbx@disroot.org> Precedence: bulk X-Mailing-List: linux-man@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- 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