Taking inspiration from earobinson’s top commands, I’ve decided to publish my own list of top 10 commands. Running the following command:
history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' | sort -rn | headBrings the following list of top 10 commands:
66 ls 40 sudo 37 cd 36 httperf 36 exit 31 svn 18 mysql 17 ssh 17 chmod 15 ./amreg-vpn.sh
Only custom script there is amreg-vpn.sh, which looks like the following:
if [ "$1" == "" ] then echo "Usage: $0 <start | stop>" else case $1 in start) echo "Starting VPN..." sudo vpnc /etc/vpnc/amreg.conf --natt-mode natt --dpd-idle 0 ;; stop) echo "Stopping VPN..." sudo vpnc-disconnect ;; *) echo "Usage: $0 <start | stop>" ;; esac fi
Related posts:








Leave a Comment