How to Open Command Prompt on Your Chromebook

Terminal App on Chromebook

Your Chromebook comes with a built-in Chrome OS terminal. If you enable Linux, there is a Linux-based terminal as well. Let me show you how to use these command prompt and terminal options on your Chromebook.

Using the Crosh Shell

The Crosh shell is the easiest to access. Use the following keyboard shortcut:

CTRL + ALT + T

This opens the Chrome OS developer shell.

Commands for Crosh Shell

What can you do using the Crosh Shell?

lpLists the available Crosh commands.
help_advancedLists the advanced Crosh commands.
help <command>Provides help for a specific Crosh command.
uptimeShows how long the system has been running and the number of users logged in.
set_timeSets the system time manually.
connectivityChecks the connection status and more details (works on some devices).
ipaddrs -4Displays the IPv4 address of the Chromebook.
ipaddrs -6Displays the IPv6 address of the Chromebook.
pingSends ICMP ECHO_REQUEST packets to a network host.
topShows the system load and a list of running processes.
battery_test <seconds>Tests the battery health and reports the battery usage over the specified number of seconds.
memory_testPerforms extensive memory testing on the available free memory.
rollbackRolls back to the previous Chrome OS version (will powerwash the device).
bt_consoleOpens a debugging console for the Bluetooth module.
Crosh Shell Commands on Chromebook

Using the Terminal App

If you want an advanced terminal app on your Chromebook, you can use the Terminal app.

From the menu, search and find the Terminal app.

If you haven’t enabled Linux on your Chromebook, you will be asked to set up Crostini.

Complete Linux setup and launch the Terminal app again.

When the setup is complete, the Terminal app appears.

You can cuztomize the Terminal app by changing the background color and add a background image. Click Terminal Settings to start customizing.

Apart from changing the way your Chromebook Terminal looks, the terminal settings page give you plenty of options to change the way the app works.

Here is a sample list of commands that you can use on the Linux Terminal on your Chromebook.

apt-get install <package>Installs a package from the APT package manager.
apt-get updateUpdates the list of available packages from the APT package manager.
apt-get upgradeUpgrades all installed packages to the latest versions.
sudoElevates the privileges of the current command.
cd <directory>Changes the current working directory.
lsLists the contents of the current directory.
mkdir <directory>Creates a new directory.
rmdir <directory>Removes an empty directory.
touch <file>Creates a new empty file.
rm <file>Removes a file.
cp <source> <destination>Copies a file or directory.
mv <source> <destination>Moves a file or directory.
nano <file>Opens a file in the Nano text editor.
vim <file>Opens a file in the Vim text editor.
grep <pattern> <file>Searches for a pattern in a file.
find <directory> <pattern>Searches for files and directories matching a pattern.
tar -cvf <archive> <files>Creates a TAR archive of the specified files.
tar -xvf <archive>Extracts the contents of a TAR archive.
zip -r <archive> <files>Creates a ZIP archive of the specified files.
unzip <archive>Extracts the contents of a ZIP archive.
Chromebook Terminal Commands

You are now set to use terminal on your Chromebook. If you are a Linux pro-user, this will open a host of opportunities for you.


Leave a ReplyCancel reply

Discover more from Chrome Story

Subscribe now to keep reading and get access to the full archive.

Continue Reading