📌  相关文章
📜  更改 ubuntu 用户名 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:51.591000             🧑  作者: Mango

代码示例4
# To manage every aspect of the user database, you use the usermod tool.
# To change username (it is probably best to do this without being logged in):

sudo usermod -l newUsername oldUsername
# This however, doesn't rename the home folder.
# To change home-folder, use

sudo usermod -d /home/newHomeDir -m newUsername