I started working recently with Ubuntu and changed my username. I changed the "v" tiny by capital "V", but in Terminal remains the same.
Asked
Active
Viewed 2,258 times
2
-
What name you want to change? What you have done? – Maythux Jul 03 '15 at 08:00
-
i changed my username – tgarmp Jul 03 '15 at 08:01
-
http://imgur.com/HRWemTk – tgarmp Jul 03 '15 at 08:04
-
1I think he is doing a little confusion. I think he is confusing **username** with **account name**. Am I right, guys? – André Marinho Jul 03 '15 at 08:47
-
The 'User Accounts' GUI changes the [GECOS](https://en.wikipedia.org/wiki/Gecos_field) *full name* (equivalent to using the command-line `chfn` command). The `PS1` string uses the short-form username `\u`: AFAIK there is no equivalent `PS1` specifier for the fullname. – steeldriver Jul 03 '15 at 11:18
1 Answers
1
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ find this line in .bashrc file(vim .bashrc is the command) from terminal and replace that "u" with something you wanted and restart Terminal; hope this works :)
jerry
- 94
- 5
-
1
-
http://imgur.com/HRWemTk http://imgur.com/FNZaqvki changed only one letter – tgarmp Jul 03 '15 at 08:06
-
1When you are installling ubuntu you will provide the username and computer name , thing is now you changed the login details of your computer that does not change the username you provided at the time of installation , and terminal contains the details you provided at the time of installation , just check it if you want command "whoami" gives username and command "hostname" gives computer name you have provided they are shown up on terminal not the one you changed it to – jerry Jul 03 '15 at 08:11
-
-
1If you want to customise the names appearing on your terminal , open vim .bashrc find the line PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ , replace u with your username you wanted to :) – jerry Jul 03 '15 at 08:16
-
1@Maythux what i am actually trying to tell is he jus changed his login name not the user name , and he wants his login name to appear on his terminal instead of username , so i just suggested him the way to customise it – jerry Jul 03 '15 at 08:20