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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 17, 2024 at 09:08:32PM +1300, Jeremy Baxter wrote:
> ---
>  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.

. and .. are not a special case of cd.  They are a special case of the
file system.

> +.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
> 
> 

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux