linux_base_command4

useradd username创建新用户

passwd username指定密码

cd /home   有用户名的新目录生成

cd /etc/passwd

cd /bin/bash

csh

ksh

sh

bsh

bash

cd /etc   more group

groupadd testg

useradd newuser -g testg

usermd -g testg testuser

userdel testuser(用户删了,目录还在)

su(switch user)

su root

exit

原文地址:https://www.cnblogs.com/cpyeah/p/8424413.html