To change the directory in a terminal, you can use the cd command followed by the path to the directory you want to navigate to. Here’s the syntax:
cd /path/to/directory
For example, to change to a directory named documents, you would use:
cd documents
If you want to go back to the previous directory, you can use:
cd -
To go up one level in the directory hierarchy, use:
cd ..
To return to your home directory, simply use:
cd
