# mate-calc-cmd:tldr:21321

The command `mate-calc-cmd`

is used to execute the command-line version of the MATE calculator. MATE is a desktop environment for Linux distributions, and the calculator is one of its built-in applications.

When you run `mate-calc-cmd`

in the terminal, it opens the calculator in command-line mode. This means you can perform calculations and get the results directly from the terminal, without launching the graphical calculator interface.

Using `mate-calc-cmd`

, you can input calculations, mathematical expressions, or functions, and the calculator will evaluate them and display the result. For example, you can use basic arithmetic operators like `+`

for addition, `-`

for subtraction, `*`

for multiplication, and `/`

for division. You can also use parentheses to group expressions and perform more complex calculations.

Here's an example of using `mate-calc-cmd`

:

```
$ mate-calc-cmd
> 3 + 4
7
> (5 + 6) * 2
22
> sqrt(25)
5
```

In this example, the calculator evaluates the expressions `3 + 4`

, `(5 + 6) * 2`

, and `sqrt(25)`

, and displays the results `7`

, `22`

, and `5`

respectively.

Using `mate-calc-cmd`

is helpful when you only have access to a terminal or prefer using the command-line interface for calculations.

**never**run a command you are not sure if it is safe.