
Summary of Useful Shortcuts for Fish Shell
Also known as the Friendly Interactive Shell or Fish, we have summarized useful shortcuts for the user-friendly interactive shell environment Fish Shell.
Posted at: 2023.10.20
Table Of Contents
Editorial Note: We earn a commission from partner links on keyboardista - English version. Commissions do not affect our editors' opinions or evaluations.
Command Shortcuts
Since commands are frequently executed in Fish Shell, remembering command-related shortcuts is essential for work efficiency. Fish Shell has many convenient shortcuts such as directory completion (Tab) and history, so using these shortcuts can also reduce the number of keystrokes.
| Shortcut | Description |
|---|---|
| Ctrl + R | Starts searching the command history. |
| Tab | Performs auto-completion for files and directories. |
| Ctrl + L | Clears the screen. |
| Ctrl + C | Interrupts the running command. |
| Ctrl + D | Exits the shell (logout). |
| Ctrl + G | Cancels command execution. |
Input Shortcuts
Input shortcuts are useful not only for those who edit shell scripts directly but also for quick input. Cursor movement shortcuts are especially handy, so be sure to master them.
| Shortcut | Description |
|---|---|
| Ctrl + U | Deletes from the cursor position to the beginning of the line. |
| Ctrl + K | Deletes from the cursor position to the end of the line. |
| Ctrl + W | Deletes text word by word. |
| Alt + ← | Moves the cursor by word. |
| Alt + → | Moves the cursor backward by word. |
| Ctrl + T | Swaps two characters. |