This question already has an answer here:
- How do I change my username? 4 answers
How do I change my logname?For e.g: xyz@ubuntu in the terminal how do I change xyz? I have tried this command
usermod -l *newname* -d /home/*newname* -m *oldname*
but that gave me an error user xyz is currently used by process PID
Command line solutions are appreciated.