Skip to content

Glossary: Command Line for IT: Bash and PowerShell

$(( ))

Also written: arithmetic expansion

bash does arithmetic inside $(( )). It works only with whole numbers, so division rounds down: $(( kb / 1024 / 1024 )) turns KB into whole GB.

Where the book teaches it

Related terms

$( )