Navigating files and folders
If you're new here, you may want to subscribe to my RSS feed.
Each time you open Terminal, you begin in your Home folder. To confirm this, type pwd and press Enter. The command pwd tells you where you are (i.e. your “Present Working Directory”). Any commands you type there will by default occur in this folder (unless you refer to some other directory explicitly.)
After opening Terminal and typing pwd on my computer, it returned /Users/richard.
To navigate to a new folder, use the cd (”change directory”) command. For example, to switch to the Applications folder, type cd /Applications. You can then type ls to list all of your Applications.
To move deeper into the hierarchy, use cd and the name of the folder. For example, if I’m in /Users/richard, I can type cd Movies to move into the Movies folder. I’ll then be in /Users/richard/Movies.
To move back a folder, use two dots (..). For example, if I’m in /Users/richard and type cd .. I will then be in /Users.
