在终端窗口中输入命令 , 来创建testuser新用户并指定目录data为根目录

useradd -d /data -m testuser

使用passwd命令设置密码 ,会输入2次

passwd testuser

成功后切换新用户登录即可。

Logo

更多推荐