GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing ss64.com — cd Man Page - Linux cdChange Directory - change the current working directory to a specific Folder. Syntax
cd [Options] [Directory]
Key
-P Do not follow symbolic links
-L Follow symbolic links (default)
If directory is given, changes the shell’s working directory todirectory. If not, changes to HOME (shell variable). $ cd - will go back to the last folder you looked at. This does not stack, so issuing CD - repeatedly will just toggle between two directories, to go back further use pushd/popd. Previous directory - equivalent to $OLDPWD ./ or just . is shorthand for the current directory. CDPATH
The return status is zero if the directory is successfully changed, non-zero otherwise. This is a BASH shell builtin, to display your local syntax from the bash prompt type: help cd ExamplesMove to the sybase folder:
Change to another folder:
Quickly get back:
Move up one folder:
Back to your home folder:
Change to the directory fred inside the current directory:
“I believe entertainment can aspire to be art, and can become art, but if you set out to make art you're an idiot” ~ Steve Martin Related Linux commandspopd - Restore the previous value of the current directory. Copyright © 1999-2026 SS64.com
Some rights reserved |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |