Open In App

getkeycodes command in Linux with examples

Last Updated : 06 Mar, 2019
Improve
Improve
Like Article
Like
Save
Share
Report

getkeycodes command in Linux is used to print the kernel scancode-to-keycode mapping table. This command has no option. setkeycodes command can be used to change the mappings.

Syntax:

getkeycodes

Example:

In the above image:

  • The scan values from 0x50 to 0x7f is translated to the decimal values. For example, 0x54 is mapped to decimal value 99.
  • The scan code values from 0x01 to 0x53 is directly mapped to the keycode.

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads