Linux filesystem
| created | 2026-05-30 20:16 |
| modified | 2026-06-01 11:25 |
| tags | linux |
| status | stub |
Linux treats nearly everything as a file, including hardware configuration. Neat!
Command reference
2026-06-01 I recently set up a new machine and I haven’t set up a desktop shell for it yet, so I’m running all these commands to query my system stats like a caveman. I haven’t set it up because: my new custom shell which I started developing this year exists only on my other machine -> I should set up a flake for my shell so I can use it across multiple machines -> the new machine has a touchscreen, so I should add gesture support to the shell to open panels and launchers -> while I’m here, wouldn’t it be nice if the shell had these other 9 features as well? -> wait, what was I doing?
# check battery percentage
cat /sys/class/power_supply/$BATTERY/capacity