Skip to content

Create a daily note touch $(date +%d-%m-%Y).md

Ja — hieronder staan de handigste terminal-/shell-shortcuts voor macOS/Linux terminals (zoals Terminal, iTerm2, Ghostty, VS Code terminal, Warp etc.). Deze werken meestal in Bash, Zsh en veel CLI-tools.

Cursor bewegen

ShortcutFunctie
Ctrl + ANaar begin van regel
Ctrl + ENaar einde van regel
Option + ←1 woord terug
Option + →1 woord vooruit
Ctrl + ← / →Soms ook woord-navigatie (terminal afhankelijk)
Ctrl + XXSpring tussen huidige positie en begin regel

Tekst verwijderen

ShortcutFunctie
Ctrl + UAlles links van cursor verwijderen
Ctrl + KAlles rechts van cursor verwijderen
Ctrl + WVorig woord verwijderen
Option + BackspaceVorig woord verwijderen
Fn + BackspaceDelete vooruit
Ctrl + DLetter onder cursor verwijderen
Ctrl + HBackspace

Knippen / plakken in shell-buffer

ShortcutFunctie
Ctrl + YLaatst verwijderde tekst plakken
Alt + YEerdere kill-ring items cyclen
Ctrl + _Undo laatste edit

Command history

ShortcutFunctie
↑ / ↓Vorige/volgende command
Ctrl + RReverse search door history
Ctrl + GStop reverse search
!!Vorige command opnieuw
!woordLaatste command dat begint met woord
historyVolledige history tonen

Reverse search voorbeeld

bash
Ctrl + R
docker

Zoek direct oude docker-commands terug.


Procesbeheer

ShortcutFunctie
Ctrl + CStop huidig proces
Ctrl + ZPauzeer proces
fgHervat gepauzeerd proces
jobsToon achtergrondprocessen
kill %1Kill job 1

Scherm / terminal

ShortcutFunctie
clearScherm leegmaken
Ctrl + LScherm leegmaken
resetTerminal resetten
Cmd + KScrollback wissen (macOS Terminal/iTerm)

Tabs & vensters (macOS)

ShortcutFunctie
Cmd + TNieuwe tab
Cmd + WTab sluiten
Cmd + DSplit pane (iTerm/Warp/Ghostty afhankelijk)
Cmd + Shift + ]Volgende tab
Cmd + Shift + [Vorige tab

Handige Bash/Zsh tricks

Huidige command aanpassen

bash
^oud^nieuw

Voorbeeld:

bash
ls /usr/locl
^locl^local

Snel naar vorige map

bash
cd -

Laatste argument hergebruiken

bash
!$

Voorbeeld:

bash
mkdir test
cd !$

Superhandig voor developers

ShortcutFunctie
TabAuto-complete
Tab TabSuggesties tonen
Ctrl + RBeste shortcut ooit voor developers
Cmd + ↑Scroll snel omhoog
Cmd + ↓Scroll omlaag

Voor Codex / CLI workflows erg handig

Vorige command aanpassen zonder opnieuw typen

bash
fc

Opent vorige command in editor.


Multi-line edit

Met:

bash
Option + Enter

(of terminal-afhankelijk)


Ghostty / iTerm2 extra handige shortcuts

iTerm2

ShortcutFunctie
Cmd + Shift + HHistory popup
Cmd + Shift + ;Command autocomplete
Cmd + Option + ESnippets

Ghostty

Ghostty ondersteunt veel standaard readline shortcuts hierboven direct. Extra handig:

ShortcutFunctie
Cmd + Shift + DSplit pane
Cmd + Ctrl + FFullscreen pane
Cmd + PCommand palette

De 10 belangrijkste om direct te onthouden

text
Ctrl + A  → begin regel
Ctrl + E  → einde regel
Option + ←/→ → per woord bewegen
Ctrl + W  → woord verwijderen
Ctrl + U  → alles links verwijderen
Ctrl + K  → alles rechts verwijderen
Ctrl + R  → history search
Ctrl + C  → stop proces
Tab        → autocomplete
cd -        → vorige map

Wil je ook:

  • een lijst specifiek voor macOS Terminal/iTerm2/Ghostty?
  • een cheat sheet PDF?
  • shortcuts specifiek voor Git?
  • shortcuts voor VS Code terminal?
  • Vim-style terminal navigation?