This guide shows you how to open the Linux terminal on a Chromebook, which gives you access to a full command-line environment for coding, scripting, and running Linux apps. You’ll need a Chromebook that supports Linux (most models from 2019 onward) and at least a few gigabytes of free storage to enable the feature if it isn’t already on.
What You’ll Need
- A Chromebook with Linux (Crostini) support — check by going to Settings > About ChromeOS and looking for “Linux development environment” in the menu.
- Enough free disk space (about 5 GB is recommended) for the Linux container.
- An internet connection for the initial setup download.
Step-by-Step
- Turn on Linux (if not already enabled)
Open Settings (gear icon in the Quick Settings panel or from the app launcher). Scroll down to Advanced and click Developers. Under “Linux development environment,” click Turn on. Follow the prompts to set a username and allocate disk space (the default is fine for most users). Wait for the setup to finish — it downloads a container image and may take a few minutes. - Open the Terminal app
Once Linux is enabled, click the Launcher (circle icon in the bottom-left corner). Search for Terminal and click the app icon. This opens a terminal window connected to your Linux container. - Use the keyboard shortcut (faster method)
Press Ctrl + Alt + T anywhere in ChromeOS. This opens a crosh shell (Chrome OS shell), not the Linux terminal. To switch to the Linux terminal, typevmshelland press Enter. If you have multiple Linux containers, you may need to select one first. - Pin the Terminal for quick access
Right-click the Terminal icon in the shelf (taskbar) and select Pin. This keeps it one click away in the future. - Verify it works
In the terminal, typeecho helloand press Enter. You should see “hello” printed. You can also runsudo apt updateto refresh the package list — this confirms your Linux environment is functional.
Common Mistakes
- Opening crosh instead of the Linux terminal — Ctrl+Alt+T gives you crosh, which is a limited ChromeOS shell. You must type
vmshellto get into Linux. The Terminal app (from the launcher) goes straight to Linux. - Not enabling Linux first — The Terminal app won’t appear if Linux is off. You must go through Settings > Developers > Linux development environment and turn it on.
- Running out of disk space — If you allocate too little space during setup, Linux may fail to install or run slowly. You can adjust the allocation later in Settings > Developers > Linux.
- Expecting the terminal to control ChromeOS directly — The Linux terminal only controls the Linux container. You can’t change ChromeOS settings from it.
Tips
- Use the Terminal app, not crosh — The Terminal app is more full-featured and supports multiple tabs, better font rendering, and direct access to your Linux files.
- Set a memorable username — During setup, you choose a username. It’s used in the prompt (e.g.,
user@penguin) and for file paths. Pick something short and easy to type. - Install useful tools — After setup, run
sudo apt update && sudo apt upgradeto update everything. Then install packages withsudo apt install <package>— for example,git,python3, orvim. - Access your Linux files from ChromeOS — Open the Files app and look for “Linux files” in the sidebar. You can drag files between ChromeOS and Linux.
- Resize the terminal window — Drag the corners to resize, or use the full-screen button. The terminal remembers its size between sessions.
Troubleshooting
- Terminal app doesn’t appear — Linux is not enabled. Go to Settings > Advanced > Developers > Linux development environment and turn it on. If the option is missing, your Chromebook or ChromeOS version doesn’t support Linux (check the official compatibility list).
- Setup fails or gets stuck — Restart your Chromebook and try again. Ensure you have a stable internet connection and at least 5 GB of free space. If it still fails, try clearing the Linux container: Settings > Developers > Linux > “Remove Linux development environment,” then re-enable it.
- Terminal opens but shows “penguin” errors — The container may be corrupted. Back up any important files, then remove and reinstall Linux from Settings > Developers > Linux.
- Commands like
sudoare not found — You’re likely in crosh, not the Linux terminal. Typeexitto leave crosh, then open the Terminal app. Alternatively, in crosh, typevmshelland press Enter. - Terminal is slow or unresponsive — Close other heavy apps, or increase the disk allocation in Settings > Developers > Linux. Also run
sudo apt updateto ensure your system is up to date. - Keyboard shortcuts don’t work in the terminal — Some ChromeOS shortcuts (like Ctrl+C for copy) are intercepted by the OS. In the terminal, use Ctrl+Shift+C to copy and Ctrl+Shift+V to paste.
Frequently Asked Questions
Q: Do all Chromebooks support Linux?
A: No. Linux support was added in 2018 and requires a reasonably modern Chromebook (most from 2019 onward). Check Settings > About ChromeOS > “Additional details” to see if your device is listed as compatible.
Q: Is the Linux terminal the same as the terminal on a regular Linux PC?
A: Yes, it runs a full Debian-based Linux environment. You can install and run most command-line tools and even GUI Linux apps.
Q: Can I damage my Chromebook by using the terminal?
A: No. The Linux environment is sandboxed — you can’t break ChromeOS itself from the terminal. At worst, you’ll mess up the Linux container, which you can remove and reinstall.
Q: How do I uninstall Linux if I don’t want it anymore?
A: Go to Settings > Advanced > Developers > Linux development environment, click the arrow next to “Linux,” and select “Remove.” This deletes the container and all its files.
Q: Can I access Windows or Mac files from the Linux terminal?
A: No, but you can access files stored in the “Linux files” folder. To share files, move them into that folder using the Files app.
Q: Why does the terminal show “penguin” in the prompt?
A: That’s the default hostname for the Linux container. You can change it by editing /etc/hostname and /etc/hosts with sudo, then rebooting the container.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Apps Not Downloading From Play Store
- Secure a Samsung Galaxy After a Zero-Day Disclosure
- What to Check Before Installing Linux Alongside Windows
- Fix OEM Activation Error 0xc004c060 in Windows 10
- Why Does My App Run One Query for the List and One per Item?
- Fix Google Chrome Has Stopped Working