We can perform mathematical calculations in Linux. The below mentioned command is used for calculations.
‘bc’ is a textmode calculator in linux. bc is a language that supports arbitrary precision numbers with interactive execution of statements.
We need to execute this command in the console.
$bc
2*3000 (Press Enter)
6000
Press quit to come out of the mode.
For more information, have a look at this url
January 28, 2008 at 11:38 am
Is there any way for scientific calculation using this command?
January 29, 2008 at 4:33 am
Hi Sanjay,
Yes we can perform scientific calculations using this option.
$bc -l