tldr/pages/common/units.md

33 lines
695 B
Markdown
Raw Normal View History

2018-04-06 08:38:37 +01:00
# units
> Provide the conversion between two units of measure.
> More information: <https://www.gnu.org/software/units/>.
2018-04-06 08:38:37 +01:00
- Run in interactive mode:
`units`
- List all units containing a specific string in interactive mode:
`search {{string}}`
2018-04-06 08:38:37 +01:00
- Show the conversion between two simple units:
`units {{quarts}} {{tablespoons}}`
- Convert between units with quantities:
`units "{{15 pounds}}" {{kilograms}}`
2018-04-06 08:38:37 +01:00
- Show the conversion between two compound units:
`units "{{meters / second}}" "{{inches / hour}}"`
2018-04-06 08:38:37 +01:00
- Show the conversion between units with different dimensions:
`units "{{acres}}" "{{ft^2}}"`
2018-11-01 12:26:38 +00:00
- Show the conversion of byte multipliers:
`units "{{15 megabytes}}" {{bytes}}`