When I installed Ubuntu, I had a keyboard with the " above 2.
Later on, I changed my keyboard to one with EN-US layout with the @ above the 2 and changed my password in the terminal with the passwd command. The password was changed successfully, but when I open a terminal with CTRL+ALT+F1 and try to log in with my username and password, it says "login incorrect" unless I switch " and @. Then I can login.
Now my question is: Why is the keyboard layout different in the terminal than in other software?