Complete sed keyboard shortcuts and commands reference — 6 shortcuts across 1 categories. Quick reference cheat sheet for Windows & Mac.
sed is a popular DevOps/CLI tool used by professionals worldwide. Learning keyboard shortcuts can dramatically speed up your workflow — studies show shortcut users save an average of 8 days per year compared to mouse-only users.
This page covers all 6 sed shortcuts across 1 categories: Text Processing. Each shortcut includes a description to help you understand when and how to use it effectively.
| Shortcut | Action |
|---|---|
| sed ’s/old/new/’ [file] | First replace |
| sed ’s/old/new/g’ [file] | Replace all |
| sed -i ’s/old/new/g’ [file] | In-place edit |
| sed -n ’5,10p’ [file] | Print range |
| sed ’/pattern/d’ [file] | Delete pattern |
| sed ’3a\\text’ [file] | Append line |
The most essential sed shortcuts are: sed ’s/old/new/’ [file] (First replace), sed ’s/old/new/g’ [file] (Replace all), sed -i ’s/old/new/g’ [file] (In-place edit). These cover the most frequent actions and can significantly speed up your workflow.
sed has 6 keyboard shortcuts across 1 categories on shortcut-tools.com.
Simply press the key combination while sed is focused. Most shortcuts work immediately. On Mac, replace Ctrl with Cmd and Alt with Option for most shortcuts.
The sed shortcut for first replace is sed ’s/old/new/’ [file].
Start with the essentials: Learn sed ’s/old/new/’ [file] (First replace) and sed ’s/old/new/g’ [file] (Replace all) first — these are the most commonly used.
Practice daily: Pick 2–3 new shortcuts each day and consciously use them instead of the mouse. Within a week, they become muscle memory.
Print this cheat sheet: Keep a reference nearby until shortcuts become automatic. Focus on the Text Processing category first.
CLI tip: Create shell aliases for the commands you use most. Combine them with these shortcuts for maximum efficiency.