gabriel7218-gcx/sysinfo ? reverse-engineered prompt

Reverse engineered prompt

Build me a tiny shell script that prints a clean system summary for Unix based machines.

I want it to show the hostname, kernel version, CPU, architecture, uptime, memory usage, and storage in one simple readout. It should work on regular Linux, OpenWrt, WSL2, and even Termux if possible, and it needs to be as portable as possible with no external dependencies so it runs in BusyBox style environments too.

Please keep it minimal and lightweight, just a single script that I can run from the terminal. If there are a few different ways to detect something depending on the system, make it handle those cases gracefully instead of failing. A plain text output is fine, but it should be easy to read at a glance. If you need to check current shell compatibility details online, go ahead and look them up.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab