如何设置终端永久全屏?无需每次启动按F11
Got it, let's fix that annoying need to hit F11 every time you fire up your terminal. The solution depends on which terminal emulator you're using—here are step-by-step fixes for the most common ones:
1. GNOME Terminal (Linux, default on Ubuntu/GNOME)
- Open GNOME Terminal, head to Edit > Preferences
- In the left sidebar, pick your default profile (usually "Unnamed")
- Switch to the Window tab
- Find the "Initial window state" dropdown and select "Fullscreen"
- Click Save and close preferences. Your next terminal launch will be fullscreen automatically.
2. Konsole (KDE's default terminal)
- Open Konsole, click the menu button (three horizontal lines) > Settings > Configure Konsole
- Select your active profile under the "Profiles" section
- Go to the Window tab
- Check the box labeled "Start in fullscreen mode"
- Hit Apply then OK—you're all set.
3. Windows Terminal (Windows 10/11)
- Open Windows Terminal, click the dropdown arrow next to the tab bar > Settings
- In the left menu, choose the profile you want to set to fullscreen (e.g., "Windows PowerShell", "Command Prompt")
- Scroll down to the "Launch settings" section
- Change "Launch mode" from "Default" to "Fullscreen"
- Click Save at the bottom. That profile will now open fullscreen every time.
4. iTerm2 (macOS)
- Open iTerm2, go to iTerm2 > Settings (or press
Cmd + ,) - Select the Profiles tab, then pick your default profile
- Navigate to the Window tab
- Under "Style", select "Fullscreen" from the dropdown
- Close the settings window. Your next iTerm2 launch will be fullscreen.
5. Alacritty (Cross-platform lightweight terminal)
- You'll need to edit its config file. Default locations:
- Linux/macOS:
~/.config/alacritty/alacritty.toml - Windows:
%APPDATA%\alacritty\alacritty.toml
- Linux/macOS:
- Open the file in your text editor, add or modify this line under the
[window]section:startup_mode = "fullscreen" - Save the file and restart Alacritty—it'll now open in fullscreen.
Bonus: Terminal emulators without GUI settings (e.g., xterm)
- Launch it with the
-fullscreenflag. To make this permanent, create an alias in your shell config:- For bash: Open
~/.bashrcand addalias xterm='xterm -fullscreen' - For zsh: Open
~/.zshrcand add the same alias
- For bash: Open
- Save the file, then run
source ~/.bashrc(orsource ~/.zshrc) to apply changes right away.
内容的提问来源于stack exchange,提问作者Farhan Tanvir
相关产品推荐
相关产品推荐

