Skip to content

Learning Terminal

This section contains resources for learning how to use the MacOS Terminal and related Linux Terminals. Look at the Terminal Emulators section to learn what alternatives there are for Mac/Linux or for working with a simlar kind of terminal on Windows.

Note this is a living document and is constantly being updated. Some things may come and go over time.

Beginner

To see hidden files on your system (Open Terminal and type):

  • To show all files: defaults write com.apple.finder AppleShowAllFiles YES
  • To hide all files: defaults write com.apple.finder AppleShowAllFiles NO

Tips:

  • You can drag and drop a folder from the Finder into the Terminal and see the path. This makes it easy to navigate (via cd) to a folder without typing the whole path in. You want to be aware of file paths and using spaces in file names and directories. Its much easier to always use no spaces. See: Spaces in file and directory names for more info.

Command Line

Quick Cheat Sheet

  • Ctrl + U : Clear the current line
  • Ctrl + A ---> Ctrl + K : Move to start of line and clear line
  • Ctrl + C : Cancel the current command
  • Ctrl + Y : Recall the deleted line
  • Ctrl + A : Move to the beginning of the line

UNIX / Linux / Terminal Cheat Sheets

Bash Shell

Customizations

Bash Scripting

Aliases

Bash Tweaks (UI, Color, etc)

Files

Text Editing with vi (vim)

Cheat Sheets

Permissions

Encoding

Workflow Enhancements

Intermediate

Terminal Emulators

MacOS / Linux

Windows

Terminal Multiplexers

screen

tmux

Getting Started

Customizing Tmux

Back to top