Change directory
This page was last updated on October 12, 2009.
It’s not recommended to use special meta-characters (like *, ?, $, &, brackets, etc.) in file names or directory names because they have special meaning to the Linux shell.
Go home
- Type this command in a terminal window:
- Or:
- Or:
cd /home/username
cd ~
cd
Change to a directory up one level
- Type this command in a terminal window:
cd ..
Change to the previous directory
- Type this command in a terminal window:
cd -
Change to a directory with spaces in its name
- Type this command in a terminal window:
- Or:
- Or:
- Or:
cd My\ Stuff
cd "My Stuff"
cd My*
cd My
Obligatory Happy Ending
And they all lived happily ever after. The end.
