function findcpu() { grep 'model name' /proc/cpuinfo | uniq | awk -F':' '{ print $2}' ; }; function findkernelversion() { uname -mrs ;}; function totalmem() { grep -i 'memtotal' /proc/meminfo | awk -F':' '{ print $2}'; }; echo "CPU Type : $(findcpu)"; echo "Kernel version : $(findkernelversion)";echo "Total memory : $(totalmem)"
How's that? Works in Bash.↧
New Post: Launch distant bash script
↧