正文

Linux查看系统命令2006-09-07 19:12:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/sovf/18366.html

分享到:

. 系统/文件/网络df -lh 查看磁盘的使用情况以及文件系统被挂载的位置fdisk -l 查看磁盘分区表及分区结构stat  display file or filesystem statusuname                                 "什么系统",-r "查看内核版本"du                                       "查看文件占用空间"dmesg                                       "系统信息"netstat                               "由于参数众多,不一一详细写,端口信息"2. 用户w Show who is logged on and what they are doing.useradd username "添加用户" -G 组名 username "直接将用户加到组并创建"userdel username "删除用户" -r username "连用户的目录也删除"passwd username "添加密码"passwd -l username "锁密码"passwd -u username "解开密码"passwd -d username "删除密码"id username "查看用户信息"usermod -l new_username old_username "用户改名"usermod -G 组名 username "更改组"usermod -L username "锁顶用户"usermod -U username "激活用户"groupadd 组名 "创建组" gpassswd -a username 组名 "将用户添加到组"groupmod -n new_group old_group "组改名"groupdel 组名 "删除组"gpasswd 组名 "改变组密码"gpasswd -r 组名 "删除组密码"

阅读(2112) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册