units command

units converts from one type into another one

Typical usage: converting quantity

Introduction 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 systemPackage nameInstallation
AlmaLinuxunits
dnf install units
Debianunits
apt install units
Fedoraunits
dnf install units
Red Hat Enterprise Linuxunits
dnf install units
Rocky Linuxunits
dnf install units
openSUSEunits
zypper install units
Ubuntuunits
apt install 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.