User Agents

Web browsers and everyday web tech, explained

How to Use Chrome OS Command Line Terminal

· 5 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Accessing and using the command line terminal in Chrome OS allows advanced users to run Linux commands, manage files, troubleshoot system issues, and install development tools. This feature, powered by Crostini, enables a full Linux environment without leaving Chrome OS. With the terminal, you can use command-line tools for programming, file manipulation, network testing, and automation. Before starting, ensure your Chromebook supports Linux (most modern models do), and that you're signed in with a Google account.

What You'll Need

  • A Chromebook with Chrome OS version 69 or later
  • An active Google account signed into the device
  • Internet connection (required for initial Linux setup)
  • At least 1 GB of free storage (recommended 2+ GB for best performance)
  • Administrator access (if your device is managed by a school or organization, Linux may be disabled)

Step-by-Step

  1. Click the system tray in the bottom-right corner of your screen (where the clock and battery icon are located).
  2. Click the gear icon to open Settings.
  3. Scroll down and click Advanced to expand advanced settings.
  4. Under the Developers section, click Linux development environment.
  5. Click Turn On. A setup dialog will appear explaining that this installs a Debian-based Linux container.
  6. Click Next to proceed. You can change the default storage size if needed (minimum 1 GB recommended).
  7. Click Install. The system will download and configure the Linux environment. This may take 5–10 minutes depending on your internet speed and device performance.
  8. Once installation completes, a terminal window labeled Terminal will open automatically, and a Linux folder will appear in your Files app.
  9. To reopen the terminal later, click the app launcher (circle icon in the bottom-left), type Terminal, and click the app icon.
  10. Use standard Linux commands like ls, cd, mkdir, cat, and echo to navigate and manage files within the Linux environment.
  11. To install software, use the apt package manager. For example, run sudo apt update && sudo apt install python3 to install Python 3.
  12. To access files from Chrome OS, navigate to /mnt/chromeos/MyDrive for Google Drive files or /mnt/chromeos/Downloads for your Downloads folder.
  13. Close the terminal by typing exit or closing the window. Your Linux environment remains saved for next use.

Common Mistakes

  • Confusing Chrome OS shell (crosh) with Linux terminal: Pressing Ctrl+Alt+T opens crosh, a limited Chrome OS shell. To access the full Linux terminal, you must enable and use the Linux development environment.
  • Running GUI apps without display support: While the terminal supports command-line tools, graphical Linux apps may not work unless your Chromebook supports Linux GUI apps (most do, but performance varies).
  • Editing system files outside the Linux container: The Linux environment is sandboxed. Changes made inside it do not affect Chrome OS system files, and vice versa.
  • Using sudo unnecessarily: While sudo is available, avoid running commands with elevated privileges unless required. Misuse can damage the Linux container.
  • Ignoring storage limits: The Linux container has a fixed size. Running out of space can break software installations. Monitor usage with df -h and resize if needed in Settings.

Tips

  • Use keyboard shortcuts: Press Ctrl+Shift+T to reopen a closed terminal tab if using a browser-like interface.
  • Copy and paste in terminal: Right-click to paste, or use Ctrl+Shift+V. To copy selected text, use Ctrl+Shift+C.
  • Access Linux files from Chrome OS: Open the Files app and look for the Linux files section to view and edit files created in the terminal.
  • Backup important data: The Linux container can be reset. Regularly back up code or configuration files to Google Drive or external storage.
  • Update regularly: Run sudo apt update && sudo apt upgrade periodically to keep Linux software secure and up to date.
  • Use command history: Press the Up arrow key to cycle through previously entered commands.

Troubleshooting

If the Linux environment fails to install, first ensure your Chromebook model supports Linux apps. Check under Settings > About Chrome OS to confirm your device is on a supported list. If installation hangs, restart your Chromebook and try again. If you see an error like "Failed to start VM," go to Settings > Advanced > Developers > Linux development environment and click Remove, then reinstall.

If the terminal opens but commands don’t work, verify internet access and run sudo apt update to refresh package lists. If file permissions are denied, avoid using sudo on mounted Chrome OS files; instead, work within the Linux home directory (~/).

If the terminal app doesn’t appear after installation, search for "Terminal" in the app launcher. If still missing, disable and re-enable Linux in Settings to trigger a reinstallation of the app shortcut.

For slow performance, close other apps, ensure sufficient RAM, and avoid installing large desktop environments like GNOME or KDE unless necessary.

Frequently Asked Questions

Can I use the terminal without enabling Linux?

You can access crosh (Chrome OS shell) with Ctrl+Alt+T, but it offers only basic diagnostics. For full command-line functionality, Linux must be enabled.

Is the Linux terminal safe on Chrome OS?

Yes. The Linux environment runs in a secure, sandboxed container. It cannot harm Chrome OS system files or settings.

Can I install Windows or macOS software?

No. The terminal runs Linux (Debian) software only. Windows and macOS programs are not compatible.

Does using the terminal drain the battery faster?

Running lightweight commands has minimal impact. Heavy processes like compiling code or running servers may increase power usage.

Can I access the terminal offline?

Yes. Once Linux is installed, you can use the terminal without internet. However, installing new software requires connectivity.

Will enabling Linux delete my files?

No. Enabling Linux does not affect your existing Chrome OS data, apps, or settings.