Top Nav

Fix strange characters from pstree on RedHat.

By default on Redhat, the output from pstree is scrambled like this:

There are a couple of ways to clear this up so that it looks like this:

Here are two possible solutions:

1. Use “pstree -G” to force VT100 line drawing

2. Do “export LANG=’en_US'” to change the language from UTF-8 to English

  • utku

    To make it permanent, an alias like
    alias pstree=”pstree -G”
    can be added to the global bashrc file (i.e. /etc/bash.bashrc)