Difference between revisions of "scratchpad"
From thelinuxwiki
Line 1: | Line 1: | ||
+ | |||
+ | == 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 | 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 | 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 |
Latest revision as of 18:06, 8 October 2013
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