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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. dvc unfreeze: Unfreeze stages in the DVC pipeline
  2. sensible-editor Command Examples in Linux
  3. UNIX / Linux : How crontab validates the access based on the cron.allow and cron.deny files
  4. dvc diff: Show changes in DVC tracked file and directories
  5. What is umask in UNIX/Linux
  6. dmidecode Command Examples in Linux
  7. How to disable a specific command for a specific user in Linux
  8. composer: A package-based dependency manager for PHP projects
  9. cwebp: Compress an image file to a WebP file
  10. fdupes: Finds duplicate files in a given set of directories

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright