useradd
Create a new user. See also:
users,userdel,usermod. More information: https://manned.org/useradd.
- Create a new user:
sudo useradd
- Create a new user with the specified user ID:
sudo useradd
- Create a new user with the specified shell:
sudo useradd
- Create a new user belonging to additional groups (mind the lack of whitespace):
sudo useradd
- Create a new user with the default home directory:
sudo useradd
- Create a new user with the home directory filled by template directory files:
sudo useradd
- Create a new system user without the home directory:
sudo useradd
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
