The Command Line

Below consider the a set of commands to navigate your computer’s file system from the command line (i.e., the Command Prompt on Windows and the Terminal on the Mac).

Windows (cmd.exe)

The path to some image file Cat.jpg on the Desktop of some User JohnDoe is: C:\Users\JohnDoe\Desktop\Cat.jpg.


MacOS (Terminal.app)

The path to some image file Cat.jpg on the Desktop of some User JohnDoe is: /Users/JohnDoe/Desktop/Cat.jpg.