Is there any special characters involved? I want to be able to open a console connection in my application and exit upon completion of a task


To get out from a "virsh console": With an english keyboard try:

 # Ctrl+]
 # Ctrl+5

All those special keys are a great problem when using another keyboards than UK. Please provide with more examples below for different languages and OS.

  • OSX Swedish map:
  • 1
    Something has definitely been lost in the translation of the second part of your answer. – Tog Oct 25 '13 at 15:30
  • Danish keyboard:
    • Ctrl+Shift+^¨~
  • English keyboard:
    • Ctrl+Shift+5
    • Ctrl+Shift+]
  • French keyboard:
    • Ctrl+Shift+5
    • Ctrl+Shift+$€* (OS X)
  • German keyboard:
    • Ctrl+Shift+5
    • Strg+Shift+5
    • ctrl+alt+6 (Mac)
  • Norwegian keyboard:
    • Ctrl+Shift+^¨~
  • Swedish keyboard:
    • Ctrl+Shift+å (OS X)

  • Are there any other known key combinations? I have Slovenian keyboard and I tried all of the above options (same position and same keys) and none of them work. – Miha Jamsek Apr 24 '20 at 19:08

Norwegian keyboard; CTRL + "^¨~" button

  • 1
    The Danish keyboard sequence is the same as the Norwegian one: CTRL + "^¨~" button – Povl Falk-Jensen Apr 23 '15 at 12:16
  • This worked on a swedish keyboard – lijat Jul 21 '20 at 6:45

CTRL + +

worked for me. all the other solutions in here didn't


With French keyboard, OS X: Ctrl+$.  (On the Apple wireless French keyboard, $, , and * are on a key to the left of the Enter key.)  See this picture:

the Apple wireless French keyboard


Workaround for those who have problems finding the shortcut:

  1. Change your systems keyboard language to a U.S Keyboard language

  2. Look at an image of a US keyboard layout and ctrl+] the corresponding keys on your keyboard


On German Mac Keyboard: ctrl+alt+6

  • The community wiki post suggests that it is actually ctrl + shift + 5. Have you got any documentation to back this up? – Burgi Mar 4 '16 at 15:06
  • there is a difference between German PC keyboard layout and German Mac keyboard layout. The suggested one is for PC, not Mac. I back this up through daily practice. – Fadi Asbih Mar 4 '16 at 22:11
  • @Burgi community wiki answer just summed up other answers here, but IMVHO Fadi Asbih should just extend community wiki answer... – g2mk Feb 9 '18 at 8:36

With german keyboard Ctrl+5 worked. (Strg+5)


On a French keyboard, CTRL+Shift+5 works great.

Not the answer you're looking for? Browse other questions tagged or ask your own question.