Sunday, July 2, 2017
Change the Command Prompt Computer Name in Ubuntu Linux
Change the Command Prompt Computer Name in Ubuntu Linux
Presumably, the most users of Linux on the desktop have either a quite weird command prompt, derived from the machine their system is running on, or one that's stating their username twice, and really don't need the computer name part of it. You can easily change the command prompt, and/or shorten it so that you both have more space for the actual commands or can include other stuff that's more relevant for you. Or you may want to change the computer name for some reason. This is how to do both of that!

The first thing you got to ask yourself, of course, is whether you need the computer name, also called "hostname", in your command prompt or not. That's important if you are logging in to other systems remotely, rarely done by the average desktop user. If the answer to that question is 'yes' but you want to change the hostname to something more nice or appropriate, or you want to change it for some other reason, you just need to change two entries in two different configuration files, as shown below.
Continue Reading �