1
I formatted my Ubuntu and misspelled the name.
I tried to fix by changing the files /etc/hostname and /etc/hosts but still can’t get what I want.
When I open the terminal appears like this:
daneil@daniel:~$
I need:
daniel@daniel:~$
Name (before @) is wrong, how to fix?
I don’t know if this is within the scope defined by the community.
– ptkato
@Patrick, I don’t think so. Operating systems are not primary tools for programmers. I think it would be too generic to accept that. And it would eventually make this site a mix between [su] and [pt.so].
– Mansueli
@Renan The fact of a command as
usermod
can be used in a script does not make the question about scripts.– bfavaretto
@bfavaretto ok, I agree. If we change the question to something like "how do I change the name of (user/host)" with shellscript, the question would be more in topic?
– Oralista de Sistemas
@Renan, I don’t think so, because the answer doesn’t change much, right? It’s an artificial way to "fit" the question. If you think we should accept questions about using the [su] style command line, do not want to open a discussion on the goal?
– bfavaretto
Done (in a way).
– Oralista de Sistemas