System Grab Bag

View all TLDR pages from common (or from all pages)

oathtool

OATH one-time password tool. More information: https://www.nongnu.org/oath-toolkit/oathtool.1.html.
  • Generate TOTP token (behaves like Google Authenticator):
    oathtool --totp --base32 "{{secret}}"
  • Generate a TOTP token for a specific time:
    oathtool --totp --now "{{2004-02-29 16:21:42}}" --base32 "{{secret}}"
  • Validate a TOTP token:
    oathtool --totp --base32 "{{secret}}" "{{token}}"

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.