Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have made a user in Mint 16 but want to change its first and last name without deleting it and starting from scratch. I know how to do it with a GUI but I want to know the terminal command alternative. I've checked the man pages of usermod but couldn't figure out how in sh.

share|improve this question

2 Answers 2

up vote 5 down vote accepted
sudo usermod -c "Jecht Tyre" jecht

You can change it with -c option. -c is for adding comment

usermod -c "YOUR NAME" username
share|improve this answer

There are a couple of ways, usermod is a good tool that comes to mind (I have trouble with it at times).

Another is chfn this will generally give you a lot of options to change (phone number, office location, and other stuff). # chfn username should open your favorite editor for you to change things with.

There are some unsafe methods, but I don't recommend them.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.