ShadowArch/Shared/sysinfo

10 lines
264 B
Plaintext
Raw Normal View History

2018-12-11 17:07:05 -06:00
#!/bin/bash
(printf "%s | %s | %s %s | %s \n" \
"$(uname -norm)" \
"$(uptime -s)" \
"$(grep -c processor /proc/cpuinfo)" \
"$(grep -m 1 model\ name /proc/cpuinfo | cut -f 2 -d ':')" \
"$(grep MemTotal /proc/meminfo)") \
| sed 's/\s\+/ /g'