Chromebooks don’t have a traditional Windows Command Prompt, but they include a Linux terminal (Crostini) and a Chrome OS shell (Crosh) that let you run commands. This guide shows you how to open both, what each one is for, and how to troubleshoot common issues.
What You’ll Need
- A Chromebook (any model that supports Linux apps, generally 2019 or newer).
- Administrator access (your own account is fine; you don’t need special permissions).
- An internet connection for the initial Linux setup (if you choose to enable Linux).
Step-by-Step
Method 1: Open Crosh (Chrome OS Shell)
- Press Ctrl + Alt + T anywhere in Chrome OS. A new tab opens with the Crosh terminal (a black window with a
crosh>prompt). - Type
helpand press Enter to see available commands. Crosh is limited but useful for network diagnostics, battery stats, and hardware tests. - To exit, type
exitor just close the tab.
Method 2: Enable Linux (Crostini) for a Full Terminal
- Open Settings (click the clock, then the gear icon).
- Go to Advanced > Developers.
- Next to Linux development environment, click Turn on.
- Follow the on-screen prompts. The setup downloads a Debian Linux container; this takes a few minutes and requires an internet connection.
- When done, a Terminal app appears in your app launcher. Open it.
- You’ll see a shell prompt like
username@penguin:~$. This is a full Linux terminal where you can run commands likels,cd,sudo, and install software withapt.
Method 3: Use a Web-Based Terminal (if you just need SSH)
- Open the Chrome Web Store and search for “Secure Shell” (the official SSH client for Chrome OS).
- Install the app, then launch it from your app launcher.
- Enter your server’s hostname and credentials to connect. This is a lightweight alternative if you only need remote command access.
Common Mistakes
- Confusing Crosh with Linux. Crosh is a limited shell; many standard Linux commands (like
apt) won’t work there. Use the Terminal app after enabling Linux for full functionality. - Skipping Linux setup. If you don’t enable Linux, you won’t have a true command prompt. The Terminal app won’t appear until you do.
- Typing Windows commands. Commands like
diroripconfigdon’t work. Use Linux equivalents:ls,ifconfig(orip addr),cd, etc. - Not using
sudowhen needed. Installing packages or modifying system files requiressudo. For example:sudo apt update.
Tips
- Use Tab for auto-completion of file and command names in the Linux terminal.
- Press Ctrl + C to cancel a running command.
- To copy/paste in the terminal: use Ctrl + Shift + C and Ctrl + Shift + V (or right-click and select Copy/Paste).
- Customize your terminal by right-clicking the Terminal window and selecting Preferences – you can change font size, color scheme, and more.
- If you need to access files from your Chromebook’s Downloads folder, they appear under
/mnt/chromeos/MyFiles/Downloadsin Linux.
Troubleshooting
Linux won’t enable
- Check that your Chromebook model supports Linux. Google’s support page lists compatible devices; generally, most Chromebooks from 2019 onward do.
- Make sure you’re on the latest Chrome OS version. Go to Settings > About Chrome OS > Check for updates.
- If the toggle is grayed out, your device may be managed by a school or employer that has disabled Linux. Contact your administrator.
Terminal opens but commands are not found
- If you see
command not found, you might be in Crosh. Typeshellto enter the Linux shell (if Linux is enabled). If that doesn’t work, close the tab and open the Terminal app instead. - If you’re in the Terminal and a standard command like
lsfails, your Linux container may be corrupted. Try right-clicking the Terminal app and selecting Shut down Linux, then restart it.
Linux container is slow or unresponsive
- Close other heavy apps and tabs to free up memory.
- Restart Linux by right-clicking the Terminal icon and choosing Shut down Linux, then reopen it.
- If it’s still slow, consider increasing the disk space allocated to Linux in Settings > Developers > Linux (if your device has enough free storage).
Can’t install packages with apt
- Run
sudo apt updatefirst to refresh package lists. - Check your internet connection – the container needs network access.
- If you get “Unable to locate package,” the package name may be wrong or not in the default repositories. Search with
apt search [keyword].
Frequently Asked Questions
Is the command prompt the same as on Windows?
No. Chromebooks use a Linux shell (Bash) by default. Commands are different (e.g., ls instead of dir), but many concepts are similar.
Can I run Windows .exe files in the terminal?
No. The Linux terminal cannot run Windows executables. You can install Linux alternatives or use a compatibility layer like Wine, but that’s complex and not officially supported.
Do I need to enable developer mode to use the terminal?
No. Crosh works without developer mode. Enabling Linux (Crostini) also doesn’t require developer mode. Developer mode is only needed for more advanced modifications like installing a different OS.
Can I access the terminal if my Chromebook is managed by a school?
Possibly. If the administrator has allowed Linux, you can enable it. Otherwise, Crosh is usually available, but some commands may be restricted. Contact your IT admin for permission.
How do I install Python or other programming tools?
Once Linux is enabled, open the Terminal and run sudo apt install python3 (or python for older versions). For other tools, search with apt search.
Will using the terminal void my warranty?
No. Enabling Linux or using Crosh is officially supported by Google and does not void your warranty. Developer mode is also safe, but it does change your system’s security posture.
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 Slow Internet Lag on Samsung Galaxy Note
- iOS 18 Safari Not Working? Fixes That Help
- How to Check Your Linux Kernel for Spectre
- iPhone Safe Mode: How to Enable or Disable It
- How to Get iOS 17 on iPhone X (Safe Methods)
- Fix Gmail IMAP Error in Outlook: Step-by-Step