{"id":9050,"date":"2022-11-15T22:07:14","date_gmt":"2022-11-15T21:07:14","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=9050"},"modified":"2024-07-23T23:05:23","modified_gmt":"2024-07-23T21:05:23","slug":"linux-switch-keyboard-layout-in-bash-shell","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/linux-switch-keyboard-layout-in-bash-shell\/","title":{"rendered":"Linux: Switch keyboard layout in (bash) shell"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_9050 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_9050')){$('.twoclick_social_bookmarks_post_9050').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Linux%3A%20Switch%20keyboard%20layout%20in%20%28bash%29%20shell\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Alinux%20allows%20to%20change%20the%20keybaord%20layout%20%22on%20the%20fly%22.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/linux-switch-keyboard-layout-in-bash-shell\\\/\",\"post_id\":9050,\"post_title_referrer_track\":\"Linux%3A+Switch+keyboard+layout+in+%28bash%29+shell\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>linux allows to change the keybaord layout &#8220;on the fly&#8221;.<br \/>\n<!--more--><\/p>\n<p>To change the layout use the <strong>loadkeys <\/strong>command. The keyboard definitions are stored unter <strong>\/usr\/share\/keymaps\/<\/strong>. On the PC architecture use the i386 folder.<\/p>\n<p>For example. CHange the layout to german:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmichael@debdev ~ # loadkeys \/usr\/share\/keymaps\/i386\/qwertz\/de-latin1\r\n<\/pre>\n<p>or to english<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmichael@debdev ~ # loadkeys \/usr\/share\/keymaps\/i386\/qwerty\/us\r\n<\/pre>\n<p>Note: This is not persistent and only affects the shell in which loadkeys is executed.<\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, linux allows to change the keybaord layout &#8220;on the fly&#8221;.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1922,382,224,1425,880],"class_list":["post-9050","post","type-post","status-publish","format-standard","hentry","category-linux","tag-keyboard","tag-layout","tag-linux-2","tag-shell","tag-switch"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=9050"}],"version-history":[{"count":2,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9050\/revisions"}],"predecessor-version":[{"id":9052,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9050\/revisions\/9052"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=9050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=9050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=9050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}