when I installed Ubuntu 14.04 I missed some thing on my user name , how to correct it and display it correctly in the terminal.
thanks for help .
Do following from root or user with sudo rights:
sudo usermod -l new_username current_username
sudo mv /home/current_username /home/new_username
sudo usermod -d /home/new_username new_username
And optional, but not sufficient (I think usermod should change only login name, but not your UID)
sudo chown -R new_username /home/new_username
I believe it will be enough for changing user name. Please note, never do that from current user name!!! Log in as root or another user with sudo rights.
See good article on Arch Linux wiki (applicable to all common Linux distros)
You can not edit user name.
You can create another user with correct name with administrative privileges. Then login with new user account and remove the incorrect user.
It can be done from System Settings -> User Accounts application.
useradd YOURNAMEHEE
follow the promptscp -R ~/* ../YOURNAMEHERE
userdel YOUROLDACCOUNTHERE