Gavin Wiggins

Notes   /   Links   /   Contact


Terminal Commands for macOS

Written on September 30, 2025

Here are some terminal commands for macOS. Some of these commands do the same thing in a Linux terminal.

Clear the screen.

clear

Control + L

Editing text in the prompt.

# delete a word
Control + W

# go to beginning of line
Control + A

# go to end of line
Control + E

# go left/right a word
Option + Left Arrow Key
Option + Right Arrow Key

Gavin Wiggins © 2025
Made on a Mac with Genja. Hosted on GitHub Pages.