Crosh commands on Chromebook
This vid lists common Crosh commands on Chromebook.
i. Crosh (Chrome OS Developer Shell) provides a set of commands for system diagnostics and management on Chromebooks. Here are some system-related commands available in Crosh:
1. **`battery_test`:**
- Run a battery test to check battery health.
```
battery_test
```
2. **`df`:**
- Display disk space usage.
```
df
```
3. **`free`:**
- Display system memory usage.
```
free
```
4. **`info`:**
- Display system information, including Chrome OS version, platform, architecture, etc.
```
info
```
5. **`memory_test`:**
- Run a memory test.
```
memory_test
```
6. **`powerinfo`:**
- Display power management information, including battery status.
```
powerinfo
```
7. **`storage_info`:**
- Display storage information.
```
storage_info
```
8. **`systrace`:**
- Record and analyze system traces.
```
systrace
```
9. **`tpcontrol`:**
- Touchpad control utility.
```
tpcontrol
```
10. **`vmc`:**
- Manage virtual machines on Chromebooks.
```
vmc
```
11. **`system_profiler`:**
- Display detailed system information.
```
system_profiler
```
12. **`iwlwifi`:**
- Display information about the wireless network adapter.
```
iwlwifi
```
13. **`network_diag`:**
- Run a network diagnostic test.
```
network_diag
```
14. **`ping`:**
- Test network connectivity to a specified host.
```
ping hostname or IP address
```
15. **`traceroute`:**
- Show the route that packets take to reach a destination.
```
traceroute hostname or IP address
```
These commands are just a subset of the available Crosh commands related to system information, diagnostics, and management. Keep in mind that the availability of these commands may vary based on your Chromebook model and the version of Chrome OS you are using. You can explore more commands and get additional information by typing `help` or `?` in the Crosh shell.
ii. Here are some useful networking related commands for Crosh on Chrome OS:
1. Get network status details:
```
network_diag --verbose
```
This shows connected WiFi network, IP address, DNS servers etc.
2. List all available networks:
```
wifi list
```
Shows the SSIDs of nearby WiFi networks along with other details.
3. Connect to a WiFi network:
```
wifi connect ssid [password]
```
Replace ssid with the network name and password if required.
4. Forget a saved WiFi network
```
wifi forget ssid
```
5. See hostname, gateway, DNS server details:
```
net_config
```
6. Renew current network connection:
```
dhcp
```
Gets fresh IP and DNS assignment from router.
7. Test DNS and ping an address
```
dns lookup url
ping -c 3 url/ip
```
Useful Crosh networking commands for diagnostics and connectivity issues!
iii. Here are some useful developer commands in Crosh for Chrome OS:
1. Enter dev mode:
```
dev_install
```
This unlocks developer features and allow customization. Can debug apps or OS.
2. Open a debug console:
```
debugd
```
Used for low-level Chrome OS troubleshooting and debugging.
3. Inspect Chrome browser processes:
```
debugd -p pid
```
View specific process details by passing its PID.
4. Manipulate power manager:
```
power
```
Options to suspend, shutdown, restart, lock Chrome OS screen etc.
5. Launch Chromium browser:
```
browser
```
Opens a dedicated instance of Chromium for testing.
6. Mount/unmount drives:
```
cd /
ls /mnt/chromeos
mount
unmount
```
Access external drives plugged in.
7. Ssh into another machine:
```
ssh username@ip-address
```
Test networks configs or remote access servers.
Very handy for developers working on Chromebooks!
Learn more@ https://www.youtube.com/c/ITGuides/search?query=Chromebook.
