Useful Chrome OS Crosh Shell Commands

Share
Top Commands For Crosh Shell

Top Commands for Crosh Shell

Hello everyone, how are you? It’s me again and right now, I am about to post a pretty useful tutorial, especially those of you who want to try your ‘command prompt’ skills on the Chrome OS, either via a Chromebook, Chromebox or your regular Google Chrome browser, either way, giddy up and pay attention…

 

Opening Crosh In Google Chrome

To open the Crosh, press Ctrl+Alt+T anywhere in Chrome OS. The Crosh shell will open in a browser tab.

From here, you can run the help command to view a list of basic commands or run the help_advanced command for a list of “more advanced commands, mainly used for debugging.” We’ll cover some of the most interesting ones below.

ssh

Google provides an SSH client in the Chrome Web Store, but you don’t need to use it. You can use the built-in ssh command to connect to SSH servers without installing anything else on your Chromebook.

The ssh command is more advanced than you might expect. In addition to simply connecting to an SSH server, you can also use SSH tunneling to create a local proxy that allows you to tunnel your Chrome OS network activity over your SSH connection. You can also add private keys that you may need to connect to SSH servers.

 Top 10 Crosh Shell Commands

1. ssh_forget_host

The ssh_forget_host command displays a list of known hosts you’ve connected to with the SSH command and allows you to “forget” a host. The next time you connect to the host, you’ll be asked to verify its key fingerprint again.

2. top

Chrome includes its own task manager that shows you which Chrome tabs, extensions, and plug-ins are using resources. However, Crosh also includes the top command from Linux, which gives you a display of all the low-level processes that may also be using resources. Most users will prefer using Chrome’s built-in task manager, but the top utility does provide more information. It also displays some information you can’t find elsewhere in Chrome OS, such as your Chromebook’s uptime.

3. ping

Yes, Chrome OS also has a ping command. Ping is an important utility for network troubleshooting, allowing you to see how long packets take to travel between your system and a web server and see whether any packets are being dropped. It works just like the ping command on other operating systems. Press Ctrl+C to stop the ping process or halt any other command in Crosh.

4. tracepath

The tracepath command functions similarly to traceroute, allowing you to trace the path packets take to reach a remote server. It’s another useful network-troubleshooting command, as it allows you to determine exactly where network problems are occurring between you and another networked device.

5. network_diag

The network_diag command performs a short set of network diagnostic tests, saving the output as a .txt file you can view in your Chromebook’s Files app.

6. sound

Chrome includes a command that can record audio from your Chromebook’s microphone and play it back later.

To record 10 seconds of audio from your Chromebook’s microphone, run the following command:

sound record 10

The audio will be saved as a file you can access from your Chromebook’s Files app. You can then play it back with the sound play command.

7. tpcontrol

The tpcontrol command allows you to fine-tune your device’s touchpad. Some of these options are available in Chrome OS’ settings window, but you can tweak many properties that aren’t available from the graphical interface.

8. xset m

The xset m command allows you to tweak your mouse acceleration rate. Chrome OS only has options for controlling the mouse’s speed in its graphical interface, so any fine-tuning of the acceleration rate — particularly useful if you’re using an external mouse that doesn’t work well with the default rate — must be done from here. The acceleration rate is configured in the same way you’d use the xset m command to configure acceleration rates on a standard Linux system.

9. xset r

The xset r command allows you to tweak the autorepeat behavior for when you hold a keyboard button down. You can select a delay before auto repeat starts and configure how many repeats occur per second. You can also disable auto repeat completely for every key on the keyboard or just disable auto repeat for specific keys.

10. Developer Mode Commands

In developer mode, you also have the following commands available to you:

  • shell: Opens a full bash shell where you can run other Linux commands, including ones that can launch standard Linux desktop environments after you install them.
  • systrace: Start system tracing, allowing you to capture logs for debugging purposes.
  • packet_capture: Start capturing and logging packets.

BONUS: You’ll find other commands if you run the help_advanced command — everything from memory tests and a Bluetooth debugging console to commands that let you control the debugging level for different background services. Many of these options are only useful for Chrome developers.

This article was first posted on: How-To-Geek.com

Other tutorials: What is Crosh Shell?, Chrome Keyboard Shortcuts for Windows, Chrome Keyboard Shortcuts for Mac, Chromebook Keyboard Shortcuts, Enable SSH Tunneling on Chrome OS

A web developer who loves programming/coding, using both my Ubuntu and chromeOS machines. I also love gaming on my Android and believe you me, I never thought I would ever say that. I also love comic books and I enjoy researching history facts, kind of weird right? My role on Chromegeek.com is to make sure everything works 24/7.