5

Linux常用命令-41:usermod

 1 year ago
source link: https://xugaoxiang.com/2022/06/13/linux-cmds-41-usermod/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

usermod 命令用于修改用户账号。

语法格式:usermod [参数]

常用参数:

27f2e68e00e2cc28.png
# 更改用户登录的目录,如以xugaoxiang登录系统,会进入到目录/home/test
usermod -d /home/test xugaoxiang

# 修改用户名,从xugaoxiang到test
usermod -l test xugaoxiang

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK