2

This question already has an answer here:

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

enter image description here

marked as duplicate by Oli Jul 3 '15 at 14:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • What name you want to change? What you have done? – Maythux Jul 3 '15 at 8:00
  • i changed my username – tgarmp Jul 3 '15 at 8:01
  • imgur.com/HRWemTk – tgarmp Jul 3 '15 at 8:04
  • 1
    I think he is doing a little confusion. I think he is confusing username with account name. Am I right, guys? – André Marinho Jul 3 '15 at 8:47
  • The 'User Accounts' GUI changes the GECOS 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 3 '15 at 11:18
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 :)

  • 1
    Will you please explain what do you suggest. – Pilot6 Jul 3 '15 at 8:05
  • imgur.com/HRWemTk imgur.com/FNZaqvki changed only one letter – tgarmp Jul 3 '15 at 8: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 3 '15 at 8:11
  • 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 3 '15 at 8: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 3 '15 at 8:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.