Keyboard modifiers by platform
This is a reference article.
Reference articles are written with the help of AI agents, after we have managed to solve a problem.
TL;DR
- On macOS,
Optionmaps toAltin most terminal docs, andCommandmaps toSuper.- Configure your terminal to send Option as Alt/Meta for shortcuts like
Alt+F.- Use
Fncombos forHome,End,Page Up/Down, and forwardDelete.
Keyboard shortcuts in documentation are often written for Linux/Windows. This guide maps common modifier keys across platforms and explains how to configure your macOS terminal for compatibility.
Modifier Key Mapping
Note: The meaning of Meta depends on the app or terminal. In many terminal emulators, Meta is sent using the Alt/Option key, while GUI shortcuts usually use the Super/Windows/Command key instead.
Special Keys on macOS
Mac keyboards lack some keys found on full-size keyboards. Use Fn combinations:
Option Key as Alt/Meta in Terminals
By default, the Option key on macOS types special characters (e.g., Option + B = ∫) instead of sending Alt/Meta key codes. Most terminal applications require configuration to use Option as Alt:
Common Shortcut Translations
Examples of how documentation shortcuts translate to macOS: