Basic CommandsLesson 6Free preview
Bash Change Dir (cd)
This lesson is part of Bash · All levels
Summary
The cd command is used to move the work directory inside the shell. You can use the absolute path that is initiated, the relative path, or the abbreviation like ~ for home and.. to climb one level.
Key points
- Cd /path moves with absolute path
- Cd name_folder moved to subfolder
- ..up one level, cd - back to the previous folder
- Cd or cd ~ takes to the home directory
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.