Iain MacDonald1 wrote:
How do I navigate up the hierarchy to the main Applications folder?
I thought it should just be, eg
cd ../Applications/MAMP/htdocs
But that doesn't seem to work.
As Tony T1 indicates, the double dot .. is parent.
Your command would have worked if you had cd'd to /Users or any other directory just below the root / directory.
Beyond .. and /, the single dot . is the current directory, and ~ is your login directory. You'll often see the single dot when invoking an application that isn't in your PATH; something like ./foo will invoke foo in your current directory, where you'd otherwise get what was in your PATH. Issuing a cd with no parameter will also take you to your home directory, too. You can see the . and .. directory files "hidden" in each of the directories with commands such as the ls -al command, too.
To learn more about this stuff, Apple has various write-ups for developers including their File System Basics (which describes which files and directories live where, and why), and also has Shell Scripting Basics and Command Line Administration available.
As you get going here, you'll probably also want to set your prompt string (I tend to set the prompt on the production servers to red and then experimenting with your login scripts, and you'll find that in additon to setting your PATH in one of your login scripts. (There's a gonzo graphical write-up on Unix and Linix login scripts here.)
Welcome to Unix.