Your Chromebook comes equipped with its very own terminal, known as the Crosh. The following is a list of some of the most important Chromebook terminal commands that every user ought to be familiar with.
Crosh is a built-in terminal that is included with Chromebooks, in case you were asking “What is Crosh?” You may debug your system, run tests, or just wander about in this terminal, which is known as the Chrome OS Developer Shell, or Crosh for short. Crosh gives you access to a command-line interface that you can use for any of these activities.
Therefore, let’s have a look at and experiment with a few different terminal commands that all Chromebook users ought to be familiar with in order to boost their level of productivity and troubleshooting.
Crosh Terminal Commands Essential to Chromebook Use
A more in-depth explanation of how to use each of these Crosh commands will be provided later, but in the meanwhile, here is the TL;DR version:
|Open Crosh||Ctrl + Alt + T|
|Configure modem||modem help|
|Rollback Chrome OS||rollback|
|Stop a process in Crosh||Ctrl + C|
|Open Task Manager||top|
|Battery Manager||battery_test [seconds]|
|Developer Mode commands||shell, systrace, packet_capture|
|Users and uptime||uptime|
|Memory information||free, meminfo|
|Switch to the canary channel||live_in_a_coal_mine|
|Auto-updates over cellular networks||update_over_cellular [enable|disable]|
1. Open Crosh
You won’t locate Crosh in the standard list of apps that are contained within the app drawer of your Chromebook. You need to press Ctrl, Alt, and T in order to open Crosh. This will cause the terminal window to open in a new tab within your browser.
You don’t need to have your Chromebook’s Developer Mode enabled to access Crosh.
2. Run a Ping Test
On your Chromebook, to do a ping test, type “ping” followed by the domain. Use the ping utility and the following Crosh command to verify that your network connection is working properly:
Ping tests are an indispensable instrument for determining the cause of problems with a computer network, in case you were unaware of this fact. It will inform you of the speed at which communication is taking place between your machine and a web server. In addition to this, it will let you know if any packets have been lost.
3. Test Your Chromebook’s Memory
Even while you can get information about your Chromebook’s RAM through the use of third-party plugins (for more details, read our article on how to check your Chromebook’s specifications), this may not be sufficient for some users. Crosh is the tool to utilize if you are looking for information at a more granular level. Simply enter the following into the appropriate boxes and push Enter:
4. Configure Your Modem
Checking to see that the modem is properly configured is an essential step in determining how to fix problems with your network.
In the terminal of your Chromebook, type the command that is outlined further down. You will have access to a variety of choices, such as settings to activate your modem, connect your modem, alter the firmware on your modem, and factory reset your modem, among other possibilities.
5. Reinstall an Earlier Version of Chrome OS
If a recent upgrade to Chrome OS has rendered your machine unusable, you may quickly cancel the update and revert to an earlier version of the operating system by using Crosh.
You only need to type the following Crosh command and push Enter to complete the process:
6. Stop Any Process in Crosh
Let’s say you wish to put a stop to any process running in the background in Crosh, such a ping or a memory test. You may accomplish this by hitting the Ctrl and C keys together. In comparison to completely shutting the Crosh window, this solution is superior and more secure.
7. A Better Task Manager
Chrome OS and the Chrome browser on other operating systems each have their own own task manager, but very few people are aware of this fact. It will show you which processes are hogging your computer’s CPU and memory resources. Launch Chrome, then navigate to More (three vertical dots), followed by More Tools, and finally Task Manager to locate the feature.
On the other hand, an even smaller percentage of users are aware that Chrome OS conceals a secondary task manager in Crosh. You may make use of it to get knowledge on low-level processes that do not appear in the primary task management program. You may gain access to it by only putting in the following nifty little Crosh command:
8. Battery Management
Again, all you have to do to view the most important information regarding your Chromebook’s battery is glance at the screen’s bottom right-hand corner.
However, if you are interested in further details, you may get them by entering battery test [seconds] into Crosh (replace [seconds] with a number). In order to verify that this command is working properly, type the following into the terminal:
Crosh will provide you with specific information on the amount of battery power that your device consumed within the allotted time period, as addition to providing you with feedback regarding the amount of time that is still left on your battery and the general health of your battery.
9. Developer Mode Commands
You do not need to have any prior experience as a developer in order to utilize Crosh. On the other hand, if you have Developer Mode on, you will have access to three new commands, which are as follows:
- shell: Opens a full Bash shell
- systrace: Starts a system trace
- packet_capture: Captures and logs data packets
10. Users and Uptime
When was the last time you made sure your Chromebook was switched off? It can be days or even weeks between reboots.
You may determine how long your computer has been up and operating since the last time it was shut down by using the command that is shown below. Information on the users who are presently logged in will also be included in the results of the search.
11. Change the Time
Do you experience issues with the time that is shown on your machine? Maybe you reside on the boundary between two time zones, or maybe you connect to the internet through a router that causes your IP address to change regularly.
If you enter set time into Crosh, you will be able to modify the time settings used by the operating system. To alter the time, for instance, you may use the following command:
set_time 02 May 2022 11:21am
12. More Network Diagnostics
If you have already performed a ping test and attempted to configure your modem, but are still having problems, put this command into your terminal to perform a comprehensive analysis of your network:
The result will be stored in the storage of your Chromebook in the form of a TXT file.
13. Trace the Packet Route
The last networking command on our list for Crosh allows you to track the path that data packets have taken across a network after they have been received. To determine the path that packets use to reach google.com, run the following command:
14. Get Command-Line Help
In the event that the command you are searching for is not included in this list, you have the option of obtaining either a condensed or comprehensive list of all of the Crosh commands that are at your disposal.
To obtain a condensed set of commands, please:
To obtain a comprehensive list of available commands, type:
15. Memory Information
You have the option of using one of the following two Crosh commands in order to obtain information regarding the amount of memory being used by your Chromebook.
For a general understanding:
For further information, please see:
16. Switch to the Canary Channel
You have the ability to subscribe to a variety of software delivery channels on your Chromebook, depending on the kinds of updates you choose to install. There are four primary channels accessible.
- Stable is for reliable and tested updates
- With Beta, you get tested and fairly reliable latest features
- Dev channel offers the latest updates that might not be very reliable
- Then, there is the Canary channel, which offers experimental updates with bleeding-edge features but very little reliability
This experimental channel got its name from the idiom “Canary in a coal mine,” which describes the role of a canary in a mine. Using the following command, you may navigate to this channel and experience life on the cutting edge:
17. Auto-Updates Over Cellular Networks
If you are connected to a cellular network while using Chrome OS, the operating system will not automatically update itself. It operates in the same manner as Android. You can enable or disable automatic updates through cellular networks by using the following instructions, provided that accessing mobile internet is not a problem for you:
18. Exit Crosh
Simply enter in this command when you are through investigating and wish to close the shell.
It can be summed up like that.
Make Backups Before You Start Using Crosh Commands
If you modify settings in the Chrome OS Developer Shell without having sufficient knowledge of what you are doing, you run the risk of rendering your system inoperable. This should go without saying.
You would only lose any data that was saved locally, which is a blessing given how simple it is to repair a Chromebook. As a result of this, you should ensure that you establish backups before you start probing around too much. Have fun experimenting with the Crosh commands by playing about with your Chromebook, which are given above.