dumpkeys command in Linux with examples

dumpkeys command in Linux is used for the dump keyboard translation tables. It writes to the standard output and the current contents of the keyboard driver’s translation tables in the format specified by Keymaps.

Syntax:

dumpkeys [Options]

Example:

Options:

  • -h(- -help): This option prints the valid options menu with an standard output and exits .
  • -i(- -short-info): Prints out the characteristics of the kernel keyboard driver. Information shown are:
    1. Keycode Range supported by the kernel: Tells the values that can be used after keycode -keyword in keytable files.
    2. Number of actions bindable to a key: It tells about how many output a single key can output using different modifier keys.
    3. Ranges of action codes supported by the kernel: It lists the action values ranging hexadecimal notation, which can be used in the right-hand side of a key definition.
    4. Number of function keys supported by kernel: It shows the number of action codes that can be used in output strings of characters.
  • -l(- -long-info): Instructs dumpkeys to print out long information with the list of all action symbols supported by dumpkeys along with symbol’s numeric values.

  • -n(- -numeric): By-pass the conversion of action code values to symbolic notation and to print the in hexadecimal format instead.

  • -f(- -full-table): Skips all short-hand doubtful output and binds the output in canonical form.

  • -t(–funcs-only): Usually dumpkeys prints both the key bindings and the string definitions however, if you specify this option it will print only the function key string definitions.
  • -k(–keys-only): Usually dumpkeys prints both the key bindings and the string definitions however, if you specify this option then it will print out keys bindings only.

  • -d(–compose-only): It prints out only compose key combinations, only if your kernel supports compose key support.

  • -c(–charset): It Interprets character action codes to be from the specified character set.


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.