Tips

  • Pressing the up and down arrow keys on your keyboard allow you to flip through commands you've previously typed.
  • If you want more power and customisation, consider downloading and using iTerm2
  • You can drag and drop a folder from Finder to the Terminal to paste its path.
  • You can stop a currently running command with CTRL+X (forcing it to exit).
  • exit will close the Terminal session.

Useful commands

whoami Displays your username

uname -a Displays details of your computer

clear Clears the contents of the Terminal window

more filename Displays the contents of a file (only try this with text files)

If you want to go deeper into Terminal-based work, install Homebrew to simplify managing command-line software.