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,500 times
2
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
-
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
chfn
command). ThePS1
string uses the short-form username\u
: AFAIK there is no equivalentPS1
specifier for the fullname. – steeldriver Jul 03 '15 at 11:18