mirror of
https://github.com/you-dont-need/You-Dont-Need-GUI.git
synced 2025-08-21 20:35:32 +02:00
add usb related commands (#66)
* add usb related commands * Update readme.md
This commit is contained in:
39
readme.md
39
readme.md
@@ -53,7 +53,11 @@ As a computer expert, we want to be more efficient and do our jobs better. We kn
|
|||||||
1. [show disk size](#show-disk-size)
|
1. [show disk size](#show-disk-size)
|
||||||
1. [check performance of your computer](#check-performance-of-your-computer)
|
1. [check performance of your computer](#check-performance-of-your-computer)
|
||||||
1. [know whether your computer is under load, and whether it's due to memory or CPU](#know-whether-your-computer-is-under-load-and-whether-its-due-to-memory-or-cpu)
|
1. [know whether your computer is under load, and whether it's due to memory or CPU](#know-whether-your-computer-is-under-load-and-whether-its-due-to-memory-or-cpu)
|
||||||
1. [Poweroff or Reboot your computer](#poweroff-or-reboot-your-computer)
|
1. [poweroff or reboot your computer](#poweroff-or-reboot-your-computer)
|
||||||
|
1. [locate USB drives](#locate-usb-drives)
|
||||||
|
1. [unmount USB drives](#unmount-usb-drives)
|
||||||
|
1. [format USB drives](#format-usb-drives)
|
||||||
|
1. [check USB format](#check-usb-format)
|
||||||
1. [Quick tips](#quick-tips)
|
1. [Quick tips](#quick-tips)
|
||||||
1. [Hotkeys](#hotkeys)
|
1. [Hotkeys](#hotkeys)
|
||||||
1. [I can't remember these cryptic commands](#i-cant-remember-these-cryptic-commands)
|
1. [I can't remember these cryptic commands](#i-cant-remember-these-cryptic-commands)
|
||||||
@@ -388,9 +392,9 @@ $ glances
|
|||||||
# brew install glances
|
# brew install glances
|
||||||
```
|
```
|
||||||
|
|
||||||
## Poweroff or Reboot your computer
|
## poweroff or reboot your computer
|
||||||
|
|
||||||
You can poweroff or reboot your machine via the command line. This can be useful when you're patching a server that is acessed via SSH and you don't have a GUI.
|
This can be useful when you're patching a server that is acessed via SSH and you don't have a GUI.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# poweroff
|
# poweroff
|
||||||
@@ -399,6 +403,35 @@ sudo shutdown -h now
|
|||||||
sudo shutdown -r now
|
sudo shutdown -r now
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## locate USB drives
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ df
|
||||||
|
```
|
||||||
|
|
||||||
|
## unmount USB drives
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ sudo umount /dev/sdb1
|
||||||
|
```
|
||||||
|
|
||||||
|
## format USB drives
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# FAT32
|
||||||
|
$ sudo mkfs.vfat /dev/sdb1
|
||||||
|
# NTFS
|
||||||
|
$ sudo mkfs.ntfs /dev/sdb1
|
||||||
|
# exFAT
|
||||||
|
$ sudo mkfs.exfat /dev/sdb1
|
||||||
|
```
|
||||||
|
|
||||||
|
## check USB format
|
||||||
|
|
||||||
|
```shell
|
||||||
|
sudo fsck /dev/sdb1
|
||||||
|
```
|
||||||
|
|
||||||
## Quick tips
|
## Quick tips
|
||||||
|
|
||||||

|

|
||||||
|
Reference in New Issue
Block a user