# Terminal

Open Terminal (`` Ctrl + ` ``), in the [command palette](Command-palette.md), or **Open terminal here** in the context menu, opens a [tab](Tabs.md) with a shell in the current folder. The file list of the tab you came from stays as it was.

![A terminal tab listing the text files of a folder](https://files.arslexis.io/assets/sumatrafilemanager/docs/img/terminal-e1b5.png)

The shell is PowerShell 7 when it is installed, otherwise Windows PowerShell. The `TerminalShell` setting runs another command line instead, such as `cmd.exe` or `pwsh -NoProfile`: see [Settings](Command-palette.md). A folder on [online storage](Online-storage.md) isn't local, so from there the shell starts in the folder the app was started from.

The terminal is built in: it shows colors, keeps 5,000 lines of scrollback, and runs full-screen programs, including ones that use the mouse.

- Keys go to the shell, except `Ctrl + Shift + T` (new tab), `Ctrl + Shift + W` (close the tab), `Ctrl + Shift + N` (new window) and `Ctrl + Shift + P` (command palette), as in Windows Terminal.
- Drag to select text. `Ctrl + Shift + C` copies it, and `Ctrl + Shift + V` or `Shift + Insert` pastes. A right click copies the selection, or pastes when nothing is selected.
- The mouse wheel and `Shift + Page Up` / `Shift + Page Down` scroll back. A program that uses the mouse gets the wheel; hold `Shift` to select text in it.

When the shell exits, the tab says so, and `Enter` or `Esc` closes it.
