How to make your username not visible on Ubuntu Panel

If you want to make your username not visible on Ubuntu panel, this is a quick tip to remove it.

Just open terminal and enter the following commands

 

gsettings set com.canonical.indicator.session show-real-name-on-panel false
unity - replace

 

After this you need to log out/in to make the changes take effects.