LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

getkeycodes

Print the kernel scancode-to-keycode mapping table

TLDR

Display keyboard scancodes
$ getkeycodes
copy

SYNOPSIS

getkeycodes

DESCRIPTION

getkeycodes displays the kernel scancode-to-keycode mapping table. It shows how raw keyboard scancodes are translated to key codes used by applications.The output shows scancode ranges and their corresponding keycodes. This mapping is used by the Linux input system to translate hardware key presses.getkeycodes is useful for debugging keyboard issues and understanding key mapping.

PARAMETERS

-V, --version

Print version number.
-h, --help
Print usage message.

INSTALL

sudo apt install kbd
copy
sudo dnf install kbd
copy
sudo pacman -S kbd
copy
sudo apk add kbd
copy
sudo zypper install kbd
copy
nix profile install nixpkgs#kbd
copy

CAVEATS

Requires access to the Linux console (will not work in X11 or Wayland terminal emulators). Output format is dense with hexadecimal scan codes and decimal key codes. Shows kernel-level mapping only, not X11 or desktop keymaps.

HISTORY

getkeycodes is part of the kbd package, providing keyboard utilities for Linux console management.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid