Which of us has never been through the situation of typing a bar and exiting a semicolon in the terminal? Here's a simple tip to change the layout of your keyboard in CentOS 8.
To see your current layout, type with the command:
localectl
In the output of this command, look for the VC Keymap property, which will probably be us. Now, let's change it to the good old ABNT2 keyboard by entering with the command:
localectl set-keymap br-abnt2
One more tip: If you need to see what layouts are available, just sign in with the following command:
list-keymaps localectl