scratchpad

From thelinuxwiki
Jump to: navigation, search

rename files and folders

test which prints new filenames... what they would be

for i in *; do newname=`echo $i | sed -e 's/(.*)//g'`; echo $newname; done

netstat (version 1.42) interface rx-err rx-drp rx-ovr monitor

while true; do netstat -i | grep -v -E "lo|Kernel|RX" | awk '{print $5,$6,$7,$9,$10,$11 ","}' | tr -d "\n"; echo; sleep 5; done

ethtool (version 5-5) error monitor

while true; do ethtool -S eth1-01 | grep -E "error|no_buffer"; sleep 5; echo "---------------------"; done