title: linux input messed up
body: <p>I was trying to do a cat command on a txt file, then things got messed up.</p>
  <p>For example, when I type &quot;[&quot;, I got &quot;Ä&quot; displayed. How to revert it back?</p>
  <p>This is redhat linux 7. Some more info below.</p>
  <pre><code>-bash-4.2$ localectl status
     System Locale: LANG=en_US.UTF-8
         VC Keymap: us
        X11 Layout: n/a
  
  
  -bash-4.2$ cat /etc/profile.d/lang.sh 
  # /etc/profile.d/lang.sh - set i18n stuff
  
  sourced=0
  
  if Ä -n &quot;$LANG&quot; Å; then
      saved_lang=&quot;$LANG&quot;
      Ä -f &quot;$HOME/.i18n&quot; Å &amp;&amp; . &quot;$HOME/.i18n&quot; &amp;&amp; sourced=1
      LANG=&quot;$saved_lang&quot;
      unset saved_lang
  else
      for langfile in /etc/locale.conf &quot;$HOME/.i18n&quot; ; do
          Ä -f $langfile Å &amp;&amp; . $langfile &amp;&amp; sourced=1
      done
  fi
  </code></pre>