How to change or rename your user in Linux

The answer is simple. I opened a terminal and wrote: sudo usermod -c "Your Full True Name" -l New_User_Name Old_User_Name. For example, it could be: sudo usermod -c "Ariel Ricardo Gomez" -l richard arg. In this case, we change the user of Ariel Ricardo Gomez, who was previously arg, for richard. Remember that to do this the account you log in with must have administrator permissions; otherwise, you will not be able to execute the command sudo. To verify the changes, you can go to System> Administration> Users and Groups.


5 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Guest said

    Maybe you can make the graphical form yourself with GTK. I encourage you to experiment with it.

  2.   Delano said

    Hello, I would like the tips you give to be in step via the terminal, and also graphically.
    Regards!

  3.   Let's use Linux said

    Yes, I try to do that whenever I can. On how to edit your user in graphical form, I did not find any other way than going to system> Administration> Users and Groups. However, that interface does not have all the options available from the terminal.
    A big hug! Paul.

  4.   Interian Noah said

    Does this work for any Linux distro? Debian or Ubuntu for example

    1.    let's use linux said

      So is…