2

I started working recently with Ubuntu and changed my username. I changed the "v" tiny by capital "V", but in Terminal remains the same.

tgarmp
  • 21

1 Answers1

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
    Will you please explain what do you suggest. – Pilot6 Jul 03 '15 at 08:05
  • http://imgur.com/HRWemTk http://imgur.com/FNZaqvki changed only one letter – tgarmp Jul 03 '15 at 08:06
  • 1
    When 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
  • @jerry OP wants to rename user name and not the PS prompt! – Maythux Jul 03 '15 at 08:14
  • 1
    If 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