'cd' is a Linux command to change the current working directory or folder of the terminal (Shell). Syntax: # cd cd: cd ]] \u00a0 Change the shell working directory. \u00a0 Change the current directory to DIR. The default DIR is the value of the \u00a0 HOME shell variable. \u00a0 The variable CDPATH defines the search path for the directory containing \u00a0 DIR. Alternative directory names in CDPATH are separated by a colon (:). \u00a0 A null directory name is the same as the current directory. If DIR begins \u00a0 with a slash (\/), then CDPATH is not used. \u00a0 If the directory is not found, and the shell option `cdable_vars' is set, \u00a0 the word is assumed to be a variable name. If that variable has a value, its value is used for DIR. \u00a0 Options: \u00a0 \u00a0 -L force symbolic links to be followed \u00a0 \u00a0 -P use the physical directory structure without following symbolic\u00a0links \u00a0 \u00a0 -e if the -P option is supplied, and the current working directory cannot be determined successfully, exit with a non-zero status \u00a0 The default is to follow symbolic links, as if `-L' were specified. \u00a0 Exit Status: \u00a0 Returns 0 if the directory is changed, and if $PWD is set successfully when\u00a0-P is used; non-zero otherwise. Examples: Let us consider the current logged user account name as 'gowri' for the commands below: Changing to current logged user's home directory: # cd or # cd ~ or # cd \/home\/gowri Changing to root directory: # cd \/ Changing to parent directory: # cd .. Changing to sub directory 'test': # cd test Changing to nested sub directory: # cd test\/subfolder Changing to directory with white space 'My Folder': # cd My\\ Folder or # cd 'My Folder' or # cd "My Folder"