Linux命令—增加用户
添加用户
# useradd test
给新增用户的密码为test
# passwd test
给用户的权限为最高权限root
# usermod -g root test
执行su test切换到用户为test ,以$开头是普通用户,#开头是管理员root账户
# su test
查看管理员组
# vi /etc/passwd
删除用户
userdel test
将用户添加进工作组:groupname是组名
# usermod -G groupname test
查看系统中的所有用户
cat /etc/passwd
查找系统中的用户操作记录
history
对系统操作历史记录进行输出
history -w