add NOTES.md
This commit is contained in:
parent
7c217d6ead
commit
7052818ffa
7
NOTES.md
Normal file
7
NOTES.md
Normal file
@ -0,0 +1,7 @@
|
||||
## List drives in external usb bay
|
||||
|
||||
fish shell script:
|
||||
```fish
|
||||
find /dev/disk/by-id -name "usb*" | grep -v "part[0-9]\$" | while read drive; lsblk -no model,serial $drive | head -n1 | tr -d '\n' | tr " " "_" && echo -e " $(echo $drive | cut -d':' -f2-)"; end | column -t --table-columns=DRIVE,BAY | sort -n -k 2
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user