Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
bc
Arbitrary precision calculator
Syntax
bc [OPTION]... [FILE]Common Options
-lLoad standard math library-iInteractive mode-qQuiet, no welcome message--mathlibSame as -l, load math libscale=NSet decimal precisionibase=NSet input number baseobase=NSet output number baseCommon Examples
echo "2+3" | bcSimple addition
echo "scale=2; 10/3" | bcDivision with 2 decimals
echo "obase=16; 255" | bcDecimal to hexadecimal
echo "ibase=2; 11111111" | bcBinary to decimal
echo "sqrt(2)" | bc -lCalculate square root
bc -lEnter interactive mode
echo "2^10" | bcCalculate 2 to the 10th power
echo "a=5; b=3; a*b" | bcUse variables
Related Tools
More Code & Dev Tools
Timestamp Converter
Convert between Unix timestamp and human-readable date. Supp...
Color Palette Generator
Generate harmonious color palettes online. Create color sche...
Color Extractor
Extract colors from images online. Get dominant colors and c...
Cron Expression Generator
Generate and validate Cron expressions online. Convert Cron ...
Regex Cheatsheet
Quick reference for regular expression patterns. Character c...
API Tester
Test HTTP APIs online with support for GET, POST, PUT, DELET...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
cURL Converter
Convert cURL commands to Python, JavaScript, PHP, Go, and mo...
Color Contrast Checker
Check color contrast ratios for WCAG compliance. Ensure acce...
JavaScript Obfuscator
Obfuscate and protect JavaScript code. Make your code harder...
Code Minifier
Minify HTML, CSS, and JavaScript code. Reduce file size by r...
HTML Formatter
Format and minify HTML online. Beautify HTML code or compres...