ABOUT nproc print the number of processing units available TYPICAL COMMANDLINE SESSION [bash] $nproc 2 $nproc –ignore=1 1 $grep -c ^processor /proc/cpuinfo 2 $cat /proc/cpuinfo | awk ‘/^processor/{print $3=$3+1}’ | tail -1 2 $cat /proc/cpuinfo | awk ‘/^processor/{print $3}’ 0 1 $lscpu | grep CPU CPU op-mode(s): 32-bit, 64-bit CPU(s): 2 On-line CPU(s) list: 0,1 …
Monthly Archives: September 2016
finding the current state of a network cable
$sudo cat /sys/class/net/eth0/speed 100 $sudo cat /sys/class/net/eth0/ca carrier carrier_changes $sudo cat /sys/class/net/eth0/carrier 1 $sudo cat /sys/class/net/eth0/carrier_changes 2 $sudo cat /sys/class/net/eth0/operstate up $sudo ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full …
Continue reading “finding the current state of a network cable”