usermod
command is used to modify user accounts.
Syntax format: usermod [parameter]
Common parameters:
Example
# 更改用户登录的目录,如以xugaoxiang登录系统,会进入到目录/home/test usermod -d /home/test xugaoxiang # 修改用户名,从xugaoxiang到test usermod -l test xugaoxiang
This article is reprinted from https://xugaoxiang.com/2022/06/13/linux-cmds-41-usermod/
This site is for inclusion only, and the copyright belongs to the original author.