Account Management on Linux
Command 命令 | What the Command Does 这命令做了什么 |
---|---|
sudo useradd {username} -m | Create the account 创建用户,如果不加-m 就不会在/home 目录有该账户的文件夹 |
sudo passwd {username} | Modify the password 修改密码 |
su {username} | Switch your account 切换账户 |
sudo userdel -r {username} | Delete the account 删除账户,加-r 表示/home 目录下的账户文件夹也一并删除 |