#!/bin/bash # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Copyright (c) 2010 FSOCA final project | http://joaosantacruz.com # This script is licensed under GNU GPL version 2.0 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Create a BASH script (resources-extended) that reports the CPU vendor_id, the type # of system running and the version of the Kernel that the system is running. Extension: # Report the Mhz/GHz the CPU is running at, how big the cache is and how many cores the # system has. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #cat /proc/cpuinfo clear echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" echo " Resources Extended " echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" echo "" cat /proc/cpuinfo | grep "vendor_id" | sort echo "system type :" `uname -m` echo "kernel version :" `uname -r` cat /proc/cpuinfo | grep "cache size" | sort cat /proc/cpuinfo | grep "cpu MHz" | sort echo "cpu cores :" `cat /proc/cpuinfo | grep "model name" | wc -l` echo "" echo "= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =" echo "Press [enter] key to continue. . ."; read pressedKey