Commonly used · Understanding the workspace
cd:Switch working directory
Syntax
cd [directory]Options
..- parent directory
~- Home directory
-- Return to the previous directory
Examples
cd projectsUsage and sandbox support
Relative paths start from the current directory. cd No output is normal.
Hands-on exercises
- Go to project directoryEveryday
- Return to home directoryEveryday
- Enter the release directoryEveryday
Related commands
pwdShow current locationlsList files and directoriestreeObserve the directory structuremanQuery command manualhelpView support scoperealpathParse absolute pathswhichFind external command locationtypeIdentify built-in and external commandslocateFind a file in the indexupdatedbUpdate file indexpushdEnter the directory and push onto the directory stackpopdPop directory stackdirsShow directory stack