Change your Ubuntu Terminal name in 10 seconds
Changing Ubuntu terminal name in 10 seconds
Hi , people who's reading this blog. i am gonna show you two methods which can change the terminal name temporarily and permanently.
Let's get started.
Temporary method:
it's very easy just type
export PS1="terminal:-"
in your command prompt and that's it you've temporarily changed your terminal name😁
example:
the major problem is when you close and open terminal again or open a new terminal it rollbacks to it's original name.
Permanent method:
To make a Terminal name permanent(don't worry you could still change it) First thing you need to do is
type "nano ~/.bashrc"
(you can use any GUI editor like nano,vi,gedit...etc)
something like this will open
scroll down until you see this
in that if statement PSI="...." you could see something like this "\u@\h" this basically means your username and host name which you see in terminal
modify that only that part example
before:
after:
press CTRL+X save it and after that type
"source ~/.bashrc" to compile the saved changes
you could see terminal name has changed
to change back to your original terminal name just type "\u@\h" where you modified
And that's all hope it helped😃
Feel free to comment any mistakes or alternatives i'll see and rely to them
also do share with you friends






Oka
ReplyDelete