units command
units converts from one type into another one
Typical usage: converting quantityIntroduction into units
The units command provides a command-line tool to convert between different types of units. This way you can quickly convert between two units without having to search online.
Examples include:
- Currencies
- Energy
- Force
- Length
- Power
- Temperature
- Time
Installation
When units is not installed by default, it can be added to the system using the relevant software package.
Package information for units
| Operating system | Package name | Installation |
|---|---|---|
| AlmaLinux | units | |
| Debian | units | |
| Fedora | units | |
| Red Hat Enterprise Linux | units | |
| Rocky Linux | units | |
| openSUSE | units | |
| Ubuntu | units | |
Your Linux distribution using a different package? Share your feedback.
Usage
Frequently Asked Questions
What is the units command and its purpose?
The units command is a command-line tool to do a conversion between quantities and types
Which package provides the units command?
The command units is provided by the units package.
Also 💙 the command-line or terminal? Here is a set of cheat sheets for Linux to get more done from within the shell: