I want to change something@something-pcname:~$
to somethingElse@somethingElse-pcname:~$
. I
have already tried changing the user name from something
to somethingElse
but the terminal still displays something@something
I want to change something@something-pcname:~$
to somethingElse@somethingElse-pcname:~$
. I
have already tried changing the user name from something
to somethingElse
but the terminal still displays something@something
First you need to add a new user of name something
sudo adduser something
then switch to that account
su something
Open the /etc/hostname
file in your favourite text editor, for example
sudo vim /etc/hostname
and edit the computer name to somethingElse-pcname Done!
You can change the global variable PS1
PS1='somethingElse'
To make it persistent add the above line to the end of your ~/.bashrc and reload it with
source ~/.bashrc
the standard (in your ~/.bashrc) is something like
${debian_chroot:+($debian_chroot)}\u@\h:\w\$
so you can play around with this.
have a look at this site for some useful variables in the bash prompt (here)