Delete character right: the shortcut in 5 apps
On Mac it is usually Ctrl+D (3 of 4 apps); on Windows it is usually Ctrl+D (2 of 3 apps); on Linux it is usually Ctrl+D (2 of 3 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux | Chromebook |
|---|---|---|---|---|
| BashDelete the character under the cursor · Line has text | CtrlD | CtrlD | CtrlD | — |
| ChromeOSDelete the next letter (forward delete) | — | — | — | AltBackspace |
| EmacsDelete the next character | CtrlD | CtrlD | CtrlD | — |
| macOSDelete the character to the right of the insertion point | CtrlDorFnDelete | — | — | — |
| VimDelete the character under the cursor · Normal mode | X | X | X | — |
How the apps compare
- Mac: Ctrl+D in Bash, Emacs and macOS; X in Vim.
- Windows: Ctrl+D in Bash and Emacs; X in Vim.
- Linux: Ctrl+D in Bash and Emacs; X in Vim.
- Chromebook: Alt+Backspace in ChromeOS.
Where and when it works
- Bash (Line has text).
- ChromeOS: Chromebooks have no Delete key: Alt+Backspace deletes the letter after the cursor, or a selected file in Files.
- Vim (Normal mode).
Learn it by pressing it: Bash shortcuts practice, ChromeOS shortcuts practice, Emacs shortcuts practice, macOS shortcuts practice or Vim shortcuts practice.