• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

loadkeys Command Examples in Linux

by Deepika

loadkeys is a command line utility used to change the keyboard layout of the console in Linux and Unix-like operating systems. It is used to remap the keys of the keyboard to support different keyboard layouts, such as QWERTY, AZERTY, and Dvorak, or to change the mapping of individual keys.

Note that changes made with loadkeys only persist for the current session. To make the changes permanent, you need to add the appropriate loadkeys command to your system startup script, such as /etc/rc.local or /etc/init.d/keyboard-setup.

It is important to use the correct keyboard layout for your needs, as using an incorrect layout can result in unexpected results when typing. loadkeys provides an easy way to switch between keyboard layouts, making it an essential tool for users who need to work with multiple languages or keyboard configurations.

loadkeys Command Examples

1. Load a default keymap:

# loadkeys --default

2. Load default keymap when an unusual keymap is loaded and `-` sign cannot be found:

# loadkeys defmap

3. Create a kernel source table:

# loadkeys --mktable

4. Create a binary keymap:

# loadkeys --bkeymap

5. Search and parse keymap without action:

# loadkeys --parse

6. Load the keymap suppressing all output:

# loadkeys --quiet

7. Load a keymap from the specified file for the console:

# loadkeys --console /dev/ttyN /path/to/file

8. Use standard names for keymaps of different locales:

# loadkeys --console /dev/ttyN uk

Filed Under: Linux

Some more articles you might also be interested in …

  1. conntrack: command not found
  2. lvresize command examples in Linux
  3. How to remove unwanted entries in /etc/shadow file
  4. How to automate sftp file transfers using expect utility
  5. repquota: command not found
  6. b2sum Command Examples (Calculate BLAKE2 cryptographic checksums)
  7. apport-bug: command not found
  8. How to test a PHP script
  9. How to Setup VNC Server for New User in CentOS/RHEL 5
  10. mount Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • direnv: Shell extension to load and unload environment variables depending on the current directory
  • dircolors: Output commands to set the LS_COLOR environment variable and style ls, dir, etc
  • dillo: A lightweight web browser intended for slow computers
  • dig: DNS lookup utility

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright