Linux常用命令总结

898阅读 0评论2011-12-09 天的星星
分类:

1、新建用户:
[root@sample ~]# useradd centospub ← 建立用户名为 centospub 的一般用户
[root@sample ~]# passwd centospub ← 为用户 centospub 设置密码
Changing password for user centospub.
New UNIX password:  ← 输入密码(密码不会被显示)
Retype new UNIX password:  ← 再次输入密码确认两次密码一致
passwd: all authentication tokens updated successfully. ← 密码设置成功
删除用户:
[root@sample ~]# userdel -r centospub ← 删除用户名为 centospub 的一般用户
上一篇:nginx worker_cpu_affinity
下一篇:Gedit快捷键