Change username in Ubuntu [closed]

1

I formatted my ubuntu and typed the name wrong.

I tried to fix it by changing the / etc / hostname and / etc / hosts files but I still can not get what I want.

When I open the terminal it looks like this:

  

daneil @daniel: ~ $

I need to:

  

daniel @daniel: ~ $

The name (before @) is wrong, how to fix it?

    
asked by anonymous 27.08.2014 / 00:38

1 answer

3

Try:

usermod -l nomeNovo nomeAntigo
    
27.08.2014 / 00:47