Skip to content

Keyboard shortcuts

One set of keys on every platform

Every terminux shortcut is Ctrl+Shift plus a key, the same on Linux, Windows and macOS. If you move between machines during the day, your hands don't have to switch.

On macOS, Cmd works too: Cmd+T and Ctrl+Shift+T both open a tab. Use whichever you like; the native menus show the Cmd form.

Plain Ctrl belongs to your shell. Shell history, tmux's prefix, readline and Emacs editing all keep working. The exceptions are zoom on Linux and Windows, and copy and paste, below.

All shortcuts work while the terminal has focus.

Workspaces and tabs

Action All platforms Also on macOS
New tab Ctrl+Shift+T Cmd+T
New workspace Ctrl+Shift+N Cmd+N
Close tab Ctrl+Shift+W Cmd+W
Jump to workspace 1–9 Ctrl+Shift+1 … Ctrl+Shift+9 Cmd+1 … Cmd+9
Previous / next tab Ctrl+Shift+[ / Ctrl+Shift+], or Ctrl+Shift+Left / Ctrl+Shift+Right Cmd+Shift+[ / Cmd+Shift+]
Previous / next workspace Ctrl+Shift+Up / Ctrl+Shift+Down Cmd+Shift+Up / Cmd+Shift+Down

Closing the last tab of a workspace closes the workspace and activates another one; the app keeps running. The numbers 1 to 9 are shown next to the workspaces in the sidebar.

Palettes

Action All platforms Also on macOS
Quick switcher (fuzzy, workspaces and tabs) Ctrl+Shift+O Cmd+P, Cmd+Shift+O
Command palette (every command) Ctrl+Shift+P or F1 Cmd+Shift+P

The quick switcher fuzzy-matches across every workspace and tab:

The fuzzy quick switcher overlay listing workspaces and tabs

The command palette holds the commands that have no shortcut of their own: sorting the sidebar, usage stats, the remote connection URL, and the toggles.

View

Action All platforms Also on macOS
Toggle sidebar Ctrl+Shift+B Cmd+B
Find in terminal Ctrl+Shift+F Cmd+F
Zoom the font in / out Ctrl+Shift++ / Ctrl+Shift+- Cmd++ / Cmd+-
Reset the font size Ctrl+Shift+0 Cmd+0

On Linux and Windows, zoom also works without Shift (Ctrl++, Ctrl+-, Ctrl+0), as in GNOME Terminal and Windows Terminal.

Copy and paste

Action All platforms Also on Linux and Windows Also on macOS
Copy the selection Ctrl+Shift+C Ctrl+C while text is selected Cmd+C
Paste Ctrl+Shift+V Ctrl+V Cmd+V
Select all Ctrl+Shift+A Cmd+A
Toggle auto-copy on selection Ctrl+Shift+Alt+C Cmd+Alt+C

Plain Ctrl+C copies only while text is selected, and clears the selection. With nothing selected, it interrupts the running program as usual, so pressing it twice always interrupts. This matches Windows Terminal, and means the PC version of Cmd+C / Cmd+V works on any PC. On a Mac, plain Ctrl+C always interrupts. Since terminux takes plain Ctrl+V on Linux and Windows, use Ctrl+Q there for what Ctrl+V does in the shell or in vim (insert the next key literally, visual block).

Auto-copy (as in iTerm2) copies whatever you select, without a key. It is off by default and kept across restarts.

On Linux and Windows, the Edit menu has the same commands.

Editing the command line

Action macOS Linux and Windows
Start / end of line Cmd+Left / Cmd+Right Home / End
Previous / next word Option+Left / Option+Right Alt+Left / Alt+Right
Delete the previous word Option+Backspace Alt+Backspace
Delete to the start of the line Cmd+Backspace Ctrl+U

In coding agents (Claude Code, Codex, OpenCode, Pi…) and other tools with multi-line input, Shift+Enter inserts a newline without running the line.

Ctrl-click (Cmd-click on macOS) opens the URL under the pointer, including the hyperlinks modern tools print.

Moving between a Mac and a PC

If you stick to Ctrl+Shift, the shortcuts behave the same everywhere. The differences you may still run into:

  • On a Mac, Cmd+P is the quick switcher, but Ctrl+Shift+P is the command palette everywhere. Use Ctrl+Shift+O for the quick switcher, and it's the same on all three.
  • Plain Ctrl+C and Ctrl+V copy and paste on a PC, but go to the shell on a Mac. Ctrl+Shift+C and Ctrl+Shift+V copy and paste on all three.
  • A few shell keys need Ctrl+Shift on most keyboards, and terminux takes them on every platform. The one you may miss is Ctrl+_ (Ctrl+Shift+-), readline's and Emacs's undo, which zooms out instead.

In a browser

When terminux runs in a browser tab (--no-window or --server), the browser keeps some keys for itself and never passes them to the page. On macOS, these are Cmd+W, Cmd+T and Cmd+N. On Linux and Windows, they are Ctrl+Shift+T, Ctrl+Shift+W and Ctrl+Shift+N. Firefox also keeps Ctrl+Shift+P.

  • On macOS, Ctrl+Shift still works for all of them.
  • On Linux and Windows, those shortcuts also work with Alt+Shift in a browser tab: Alt+Shift+T, Alt+Shift+W, Alt+Shift+N, Alt+Shift+P, and Alt+Shift+O for the quick switcher. Other Alt+Shift keys still reach the shell.
  • F1 opens the command palette in every browser.
  • In Chrome and Edge, the command palette's Enter full screen makes the browser pass every key to terminux, Cmd+W included. Hold Esc to leave full screen.

terminux's own window, and terminux --connect, have none of these limits.