Open In App

dumpkeys command in Linux with examples

Improve
Improve
Like Article
Like
Save
Share
Report

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.

Last Updated : 15 May, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads