← 返回命令列表

Linux command

ykinfo 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show all YubiKey information

ykinfo -a

Show serial number in decimal

ykinfo -s

Show serial number in hex

ykinfo -H

Show firmware version

ykinfo -v

Check if slot 1 is programmed

ykinfo -1

Show capabilities (quiet mode for scripting)

ykinfo -c -q

说明

ykinfo queries a connected YubiKey device and displays its identification information. It can report the serial number, firmware version, and supported capabilities of the hardware token. The -a flag shows all available information at once. Individual flags like -s (serial), -v (version), and -c (capabilities) display specific details. Quiet mode (-q) outputs values without labels for use in scripts. When multiple YubiKeys are connected, the tool can select a specific device by serial number. It is part of the yubikey-personalization package and is useful for diagnostics, inventory, and scripting around YubiKey management.

参数

-a
Show all available information.
-s
Serial number in decimal.
-m
Serial number in modhex.
-H
Serial number in hex.
-v
Firmware version.
-t
Touch level.
-p
Programming sequence.
-1
Check if slot 1 is programmed.
-2
Check if slot 2 is programmed.
-c
Capabilities.
-q
Quiet mode; output values without labels.

FAQ

What is the ykinfo command used for?

ykinfo queries a connected YubiKey device and displays its identification information. It can report the serial number, firmware version, and supported capabilities of the hardware token. The -a flag shows all available information at once. Individual flags like -s (serial), -v (version), and -c (capabilities) display specific details. Quiet mode (-q) outputs values without labels for use in scripts. When multiple YubiKeys are connected, the tool can select a specific device by serial number. It is part of the yubikey-personalization package and is useful for diagnostics, inventory, and scripting around YubiKey management.

How do I run a basic ykinfo example?

Run `ykinfo -a` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a do in ykinfo?

Show all available information.