用户命令

下查看用戶列表 cat /etc/passwd

删除用户 userdel 用户名

添加用户 useradd -d /phpstudy/www/TA_Mobile_V0.1-Alpha -s /sbin/nologin tayiren

文件夾或文件所有者

chown 用戶名 文件名

组相关命令

递归更改组属性 chgrp tayirens -R TA_Mobile_V0.1-Alpha 格式 chgrp 组名 -R 文件夹

查看组 cat /etc/group

将一个用户添加到一个组中 gpasswd -a tayiren tayirens 格式 gpasswd -a 用户名 组名

查看用户ID及组详细信息 id user

查看用户属于级简要信息 groups user

WEB服务相关命令

results matching ""

    No results matching ""