ShadowArch/UserScripts/sysinfo

10 lines
264 B
Bash
Executable File

#!/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'