I use the default Ubuntu calculator rather a lot, but to use it I have to use the Unity search feature to find it and then open it. I have tried to open it in Terminal with:
calculatorAnd:
CalculatorBut neither of those seem to launch, so how do I launch the calculator through Terminal? What command do I use? Also, as my Unity Dock is rather full, it's not really an option just to put a link to it there.
26 Answers
Try to type:
gnome-calculatorOr for Older version (Ubuntu 12.04 and before):
gcalctool 3 Always when you have such a question in mind, ie, you don't know the name of the tool to invoke it in command line, find it from the terminal itself:
man -k <keyword>It will search the manual page names and descriptions for the keyword you specified and prints the titles. In your case, it would be:
man -k calculatorAs an illustration, if you want to invoke the webcam tool you can type something like:
man -k cameraman -k is equivalent to apropos.
Qalculate! is awesome tool for desktop.
To install it: sudo apt-get install qalculate.
Terminal version sudo apt-get install qalc.
Converts currency:
$ qalc 100 dollars to euro 100 * dollar = approx. EUR 90.017103 $ qalc 100AUD = x EUR (100 * dollar) = (x * euro) = approx. x = 90.017103Works with percent:
$ qalc 87.12 + 13.3% 87.12 + (13.3 * procent) = 87.253Gets Unix timestamps:
$ qalc timestamp today timestamp("2015-08-14") = 1.4394996E9Operates boolean:
$ qalc true != false true != false = 1Also you can do ln -s /usr/bin/qalc /usr/bin/c for shorthand:
$ c "(2+2)*2" (2 + 2) * 2 = 8 1 The command is gnome-calculator
I created an alias for this in ~/.bash_aliases as follows
calc="gnome-calculator &"save the file and then type the following in the terminal
source ~/.bash_aliasesYou can now launch the calculator using calc in the terminal.
You can try the command below
xcalc 0