[Chrome_ OS] crosh shell terminal basic commands

Source: Internet
Author: User
Tags network troubleshooting ssh server

Google's Chrome OS shortdes a shell environment known as chrome shell, or "crosh" for short. crosh events des several terminal commands that can be used on all chromebooks, even ifdeveloper mode isn't enabled.

Crosh includes commands for connecting to SSH servers, monitoring resource usage, debugging network problems, tweaking hidden hardware settings, login Ming hardware tests, and other debugging purposes.

Opening crosh

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 thehelp_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 failed CT. 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.

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.

Top

Chrome nodes des its own task manager that shows you which chrome tabs, extensions, and plug-ins are using resources. however, crosh also nodes 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.

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.

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.

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.

Sound

Chrome shortdes 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.

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 using properties that Aren't available from the graphical interface.

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-Special 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.

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 autorepeat starts and configure how many repeats occur per second. you can also disable autorepeat completely for every key on the keyboard or just disable autorepeat for specific keys.

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.

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. attributes of these options are only useful for chrome developers.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.