linux命令:userdel
?userdel命令簡介:
? ??此命令用于刪除已存在的用戶。?
1.命令格式:
? ? ?userdel [option] USERNAME
2.命令功能:
? ? ? ??用于刪除系統中已存在的用戶。
? ?3.命令參數:
? ? ??-r: 刪除用戶時,同時把用戶的家目錄也一起刪除
? ?4.命令實例:
? ? ?userdel -r john ?刪除用戶john并把其家目錄一起刪除
[root@xuelinux test1]# ls /home
donggen ?john ?lost+found ?tom
[root@xuelinux test1]# userdel -r john
[root@xuelinux test1]# ls /home
donggen ?lost+found ?tom
[root@xuelinux test1]# tail -3 /etc/passwd
oprofile:x:16:16:Special user account to be used by OProfile:/home/oprofile:/sbin/nologin
donggen:x:500:500::/home/donggen:/bin/bash
tom:x:666:666:測試用戶管理命令的用戶:/home/tom:/bin/bash
本文轉自wang650108151CTO博客,原文鏈接:?http://blog.51cto.com/woyaoxuelinux/1861058,如需轉載請自行聯系原作者
總結
以上是生活随笔為你收集整理的linux命令:userdel的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MySQL 多实例详解
- 下一篇: 查看CentOS版本方法