Jul162008

My top 10 commands for July, 2008

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 | head

Brings 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
Bookmark and Share

Related posts:

  1. Simple backup script for Ubuntu


Leave a Comment

 
Powered by Wordpress and MySQL. Clauz's design for by Cricava