> For the complete documentation index, see [llms.txt](https://www.shellspells.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.shellspells.net/linux/terminal-ops/keyboard-shortcuts.md).

# Keyboard Shortcuts

<table><thead><tr><th width="283">Shortcut</th><th>Description</th></tr></thead><tbody><tr><td><mark style="color:yellow;"><code>Ctrl + Shift + N</code></mark></td><td>Open new terminal window.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + Shift + T</code></mark></td><td>Open new tab on current terminal.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + Shift + D</code></mark></td><td>Detach window.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + Shift + W</code></mark></td><td>Close current tab.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + Shift + Q</code></mark></td><td>Close terminal window.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + PageUp</code></mark></td><td>Move to previous tab.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + PageDown</code></mark></td><td>Move to next tab.</td></tr><tr><td><mark style="color:yellow;"><code>Alt + Number (1,2,3)</code></mark></td><td>Move to tab 1/2/3.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + Shift + C</code></mark></td><td>Copy from terminal.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + Shift + V</code></mark></td><td>Paste to terminal.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + Shift + A</code></mark></td><td>Select all.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + Shift + F</code></mark></td><td>Search.</td></tr><tr><td><mark style="color:yellow;"><code>Up Arrow / Ctrl + P</code></mark></td><td>Scrolls through the commands you've entered before.</td></tr><tr><td><mark style="color:yellow;"><code>Down Arrow / Ctrl + N</code></mark></td><td>Takes you back to a more recent command.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + R</code></mark></td><td>Searches for commands you've already typed.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + A / Home</code></mark></td><td>Moves the cursor to the start of a line.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + E / End</code></mark></td><td>Moves the cursor to the end of a line.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + K</code></mark></td><td>Deletes from the current cursor position to the end of the line.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + U</code></mark></td><td>Deletes from the start of the line to the current cursor position.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + W</code></mark></td><td>Deletes the word before the cursor.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + Y</code></mark></td><td>Revert that remove by Ctrl + W.</td></tr><tr><td><mark style="color:yellow;"><code>Alt + B</code></mark></td><td>Goes back one word at a time.</td></tr><tr><td><mark style="color:yellow;"><code>Alt + Shift + F</code></mark></td><td>Moves forward one word at a time.</td></tr><tr><td><mark style="color:yellow;"><code>Alt + C</code></mark></td><td>Capitalizes letter where cursor is and moves to end of word.</td></tr><tr><td><mark style="color:yellow;"><code>Ctrl + L</code></mark></td><td>Clear terminal output.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.shellspells.net/linux/terminal-ops/keyboard-shortcuts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
