Linux Commands Examples

A great documentation place for Linux commands


obtain information about the status of a console

see also : kbd_mode


kbdinfo [-C DEVICE] getmode [text|graphics]

kbdinfo [-C DEVICE] gkbmode [raw|xlate|mediumraw|unicode]

kbdinfo [-C DEVICE] gkbmeta [metabit|escprefix]

kbdinfo [-C DEVICE] gkbled [scrolllock|numlock|capslock]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


kbdinfo is an interface to KDGETMODE, GKBMODE, GKBMETA and GKBLED ioctls. Its primary use case is to query the status of the given CONSOLE (or the currently active one, if no -C option is present) from a shell script.

If the final value argument is not specified, kbdinfo will print the result of the desired ioctl to the standard output. Otherwise, the given value is compared to the actual result, and the utility will exit with a status code of 0 for a match, 1 otherwise. No text is printed for this style of invocation.

see also



kbdinfo is Copyright © 2011 Alexey Gladkov <gladkov.alexey[:at:]gmail[:dot:]com>.

This manual page was written by Michael Schutte <michi[:at:]debian[:dot:]org> for the Debian GNU/Linux system (but may be used by others).

How can this site be more helpful to YOU ?

give  feedback