From your home directory, enter the Documents folder:
Command
cd DocumentsPiece-by-piece explanation
cdis the command.- The space separates the command from its destination.
Documentsis the directory name.- Linux names are case-sensitive, so the capital D matters.
Expected output
(no output)A successful cd normally prints nothing. The prompt may change. Run pwd separately to confirm the new location.
Move one level upward in the tree:
Command
cd ..Piece-by-piece explanation
cdchanges directory...is the special path for the parent directory.- The parent is the folder containing the current folder.
Expected output
(no output)Success normally has no output. Your prompt returns in the parent directory.
Return directly to your home directory:
Command
cd ~Piece-by-piece explanation
cdchanges location.~is the shortcut for your home directory.
Expected output
(no output)Success is silent. A prompt containing ~ usually confirms you are home.