Prints some system information (CPU usage, temperature, ..) and updates it in real time.
Only on Linux-based OS since it uses files in
/proc/
and/sys/
.
To run it directly on your machine:
go run sysinfo.go
Nbr of CPU(s): 4
CPU 1: 4.9%
CPU 2: 2.0%
CPU 3: 14.6%
CPU 4: 3.9%
Memory Usage: 30.6%
CPU Temperature: 44โ
Ctrl+C to exit the program.
(Or go build sysinfo.go && ./sysinfo
)
Requirement: goterm
sysinfo
uses goterm to display the information. To get it:
go get github.com/buger/goterm
If you don't have Go on your machine, you can also use this script through Docker, by pulling the image from my Docker Hub (built on/for x86_64
):
docker run -it jbdrvl/sysinfo:latest
Or you can build the image yourself with the Dockerfile (especially if you're on an arm
architecture since the x86_64
image won't work):
git pull https://github.com/jbdrvl/sysinfo.git
cd sysinfo
docker build -t sysinfo . && docker run -it sysinfo