Terminal on Linux (Ubuntu/Debian) — VS Code and system terminals
Exact keyboard shortcuts and menu paths to open an integrated terminal in VS Code and the built-in terminal apps
Start Here — VS Code’s integrated terminal (recommended)
- Keyboard shortcuts (recommended):
- Toggle terminal (show/hide): Ctrl + ` (backtick)
- New terminal instance: Ctrl + Shift + `
- Command Palette: Ctrl + Shift + P → run
View: Toggle Terminal
- Menu paths:
- View → Terminal
- Terminal → New Terminal
- Explorer (right-click folder) → Open in Integrated Terminal
-
Quick verification
- Open the integrated terminal.
- Type and run:
You should see `hello` printed back.
Linux quick tips
- Ensure `gradlew` is executable: `chmod +x gradlew`.
- If you get `/bin/sh^M: bad interpreter`, convert line endings: `dos2unix gradlew` or `sed -i 's/\r$//' gradlew` and re-add as LF in Git.
- If `java` is missing, install the course JDK (Temurin 25). Example (Adoptium/Temurin 25 on Ubuntu/Debian):
```bash
sudo apt update
sudo apt install -y wget apt-transport-https gpg
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo gpg --dearmor -o /usr/share/keyrings/adoptium.gpg
echo "deb [signed-by=/usr/share/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/adoptium.list
sudo apt update
sudo apt install -y temurin-25-jdk