Monthly Archives: August 2013

Handling arrays in bash scripts

You can create an array by using the following command: arrayname=( value1 value2 …. valueN ). Here we create an array with 5 elements. myarray=( “string 1” “string 2” “string 3” “” “string4″ ) or myarray=( [0]=”string 1″ [1]=”string 2” … Continue reading

Posted in Bash, Linux | Leave a comment

Check the load balancing mode of bonded interfaces in Linux

To check the current lb mode execute the command below: cat /sys/class/net/<interface name>/bonding/mode

Posted in Beginner, Linux | Leave a comment