红帽子linux管理

简介:
[root@localhost root]#groupadd test
//创建test
[root@localhost root ]#useradd –g test test1
// test 组中创建 test1 用户
[root@localhost root]#passwd test1
// 设置 test1 的密码 , 密码为: 123456
[root@localhost root]#reboot
// 重新启动 , 输入用户 test1 ,密码 :123456
Localhost login:test1
Password:123456
[test1@localhost test1]$
[test1@localhost test1]$exit
// 退出 test1 用户
Localhost login:root
Password:123456
// 输入超级用户 root ,密码
[root@localhost root]#userdel test1
// 删除刚才创建的用户
[root@localhost root]#groupdel test
// 删除创建的 test
[root@localhost root]#who
// 列出所有正在使用系统的用户
[root@localhost root]#whoami
// 列出当前用户
[root@localhost root]#w
// 显示谁登陆系统并且在做什么









本文转自 chen138 51CTO博客,原文链接:http://blog.51cto.com/chenboqiang/266439,如需转载请自行联系原作者
目录
相关文章
|
25天前
|
监控 Linux Shell
【Shell 命令集合 网络通讯 】Linux 配置和管理网络流量的形状 shapecfg命令 使用指南
【Shell 命令集合 网络通讯 】Linux 配置和管理网络流量的形状 shapecfg命令 使用指南
36 0
|
25天前
|
存储 Shell Linux
【Shell 命令集合 磁盘维护 】Linux 管理硬盘分区 mpartition命令使用教程
【Shell 命令集合 磁盘维护 】Linux 管理硬盘分区 mpartition命令使用教程
35 1
|
25天前
|
存储 监控 Shell
【Shell 命令集合 磁盘管理 】Linux 管理磁盘配额 quota命令使用教程
【Shell 命令集合 磁盘管理 】Linux 管理磁盘配额 quota命令使用教程
35 0
|
1月前
|
Linux 开发工具 数据安全/隐私保护
【Linux】—— git的管理以及使用
【Linux】—— git的管理以及使用
|
20天前
|
存储 算法 Linux
【Linux 应用开发 共享内存】深入理解和实践 ftruncate:共享内存的有效管理
【Linux 应用开发 共享内存】深入理解和实践 ftruncate:共享内存的有效管理
52 5
|
25天前
|
域名解析 网络协议 Linux
【Shell 命令集合 网络通讯 】Linux 设置和管理网络接口配置信息 netconfig命令 使用指南
【Shell 命令集合 网络通讯 】Linux 设置和管理网络接口配置信息 netconfig命令 使用指南
48 1
|
25天前
|
监控 Linux Shell
【Shell 命令集合 网络通讯 】Linux管理终端设备的登录过程 getty命令 使用指南
【Shell 命令集合 网络通讯 】Linux管理终端设备的登录过程 getty命令 使用指南
31 0
|
25天前
|
搜索推荐 Shell Linux
【Shell 命令集合 系统管理 】Linux 管理用户配置文件 userconf命令 使用指南
【Shell 命令集合 系统管理 】Linux 管理用户配置文件 userconf命令 使用指南
31 2
|
25天前
|
存储 监控 Shell
【Shell 命令集合 磁盘管理 】Linux 设置和管理用户或组的磁盘配额限制 edquota命令使用教程
【Shell 命令集合 磁盘管理 】Linux 设置和管理用户或组的磁盘配额限制 edquota命令使用教程
32 0
|
1月前
|
存储 安全 网络协议
使用 firewall-cmd 管理 Linux 防火墙端口
本文将介绍如何使用 firewall-cmd 工具在 Linux 系统中进行简单端口管理,包括开放、查询、关闭等操作。通过实例展示相关命令的用法,希望能对大家有所帮助。
93 0