cd

Basic Linux Command Example: 

 

Linux cd command help.

 

   Linux cd command is use to change directory (go from one directory to another directory) on Linux system.  The Linux cd command is one of bash built in command.  The command below show how to get Linux cd command help, this help show information on how to use the Linux cd command, the cd command options and the arguments that can be use with Linux cd command.

 

Get Linux cd command help

 

  Execute help command and the name of Linux command that we want the help file, the example below we execute help command to get help for cd command.

 

cd linux command

[linux@fedora11 ~]$ help cd

cd: cd [-L|-P] [dir]

    Change the shell working directory.

 

    Change the current directory to DIR.  The default DIR is the value of the

    HOME shell variable.

 

    The variable CDPATH defines the search path for the directory containing

    DIR.  Alternative directory names in CDPATH are separated by a colon (:).

    A null directory name is the same as the current directory.  If DIR begins

    with a slash (/), then CDPATH is not used.

 

    If the directory is not found, and the shell option `cdable_vars' is set,

    the word is assumed to be  a variable name.  If that variable has a value,

    its value is used for DIR.

 

    Options:

        -L      force symbolic links to be followed

        -P      use the physical directory structure without following symbolic

        links

 

    The default is to follow symbolic links, as if `-L' were specified.

 

    Exit Status:

    Returns 0 if the directory is changed; non-zero otherwise.

[linux@fedora11 ~]$

 

Keywords: cd, cd command, linux cd command, cd linux command, cd help, help cd