Linux common commands-41: usermod

usermod command is used to modify user accounts.

Syntax format: usermod [parameter]

Common parameters:


 # 更改用户登录的目录,如以xugaoxiang登录系统,会进入到目录/home/test usermod -d /home/test xugaoxiang # 修改用户名,从xugaoxiang到test usermod -l test xugaoxiang

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment

Your email address will not be published.