Linux Desk Calculator

Terminal command to perform arithmetic operations

dc [OPTION] [file …]

-e    –expression=EXPR    evaluate expression

-f    –file=FILE                    evaluate contents of file

Basic arithmetic uses the standard + – / * symbols but entered after the digits

To print result type p

To quit dc type q

desk_calculator.JPG

Advertisements

One thought on “Linux Desk Calculator

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s