The cd command
Change the current directory. Moves you into another directory. With no argument it takes you home (~). "cd .." goes up one level, and "cd -" goes back to the directory you were in before. cd is built into the shell, so it has no options worth knowing here.
Usage
cd [DIRECTORY]
Examples
cd projectsInto the projects folder inside the current onecd ..Up one levelcd /etcTo an absolute path, from anywherecdHomecd -Back to the previous directory
Learn it step by step
Related commands
learner@sandbox: ~bash (practice)
Note: Try cd here: your home directory has sample files. Press Try beside an example, or type your own.
Enter runs · Tab completes names · ↑ ↓ step through history · Ctrl+L clears · type help for every command
A practice shell in your browser that behaves like bash on Linux for these commands. Nothing you type leaves the page.