Linux Calculator – BC

I was looking to do some quick calculations from the Linux console today and discovered ‘bc‘.

Example Command:

  • echo ‘1028 * 8’ | bc

bc.png

I can see how this command could be useful in a shell script!!

Hello, Welcome to DevOpsUnleashed!

A blog dedicated to sharing information about DevOps. Here, you’ll find examples, tips, and tutorials on DevOps.

Feel free to share your experiences in the comments!

Blog Categories