Master changing directories to move quickly inside Linux shells. 26.02.2026 | reading time: 2 min Want to move quickly through your Linux filesystem? The cd command changes the shell's current directory so he can enter folders, return to previous locations, or jump straight to home and absolute paths. Quick session Try this interactive session to see cd in action: ```bash $ pwd /home/alex $ ls projects notes.txt scripts $ cd projects $ pwd /home/alex/projects $ cd ../scripts $ pwd /home/alex/scripts $ cd - /home/alex/projects $ cd $ pwd /home/alex ``` Tricks and flags cd works simply, but a few details make it powerful: use `cd` alone to go to $HOME, `cd -` to toggle to the previous directory, `cd ..` to step up, and `cd ~user` to jump to another user's home; bash supports `cd -L` and `cd -P` to prefer logical or physical paths when symlinks are involved, and remember to quote paths with spaces like `cd "My Documents"`; also CDPATH can change how relative names are resolved. Useful companions Combine cd with `pwd` to verify where he is, `ls` to inspect contents, `pushd` and `popd` to manage a directory stack for quick toggling, and tools like tree to visualize a directory hierarchy before descending into it. Next steps Practice moving between directories until it feels instantaneous, then apply that fluency in shell scripts and maintenance tasks; for a deeper, career-oriented path, consider CompTIA Linux+ or LPIC-1 certification and intensive exam preparation at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. filesystem utilities scripting troubleshooting