How to perform simple calculations in Linux shell? Commands No Responses » Dec 312009 How to perform simple calculations in Linux shell? Answer: Use the "bc" commad. echo "101+1" | bc It will gives: 102