Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程
<p style="margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";">Ubuntu系统添加了很多用户,想在不用的用户想要删除,该怎么删除呢?下面我们就来看看详细的教程。</p><p style="margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";">
1、打开终端命令行,运用<strong>userdel命令</strong>删除指定的用户,<strong>注意要加sudo权限指令,</strong>如下图所示</p><p style="text-align:center;margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";"><img style="max-width:100%!important;height:auto!important;" title="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" alt="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" src="https://zhuji.jb51.net/uploads/img/202305/b7c5db46d217970ef617daaadd754a3f.jpg"/></p><p style="margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";">
2、在删除的时候<strong>一定注意是在管理员目录下的</strong>,<strong>普通的用户是没有这个权限的</strong>,如下图所示</p><p style="text-align:center;margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";"><img style="max-width:100%!important;height:auto!important;" title="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" alt="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" src="https://zhuji.jb51.net/uploads/img/202305/5b2c9735396496b9a03c3884a39a2971.jpg"/></p><p style="margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";">
3、删除指令执行完了以后怎么判断是否真正删除了呢?下面我们运用<strong>cat命令</strong>打<strong>开passwd文件</strong>,如下图所示</p><p style="text-align:center;margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";"><img style="max-width:100%!important;height:auto!important;" title="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" alt="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" src="https://zhuji.jb51.net/uploads/img/202305/874df266d810f6af6b736a66dbd3fc33.jpg"/></p><p style="margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";">
4、我们看到<strong>passwd文件</strong>中已经没有了所删除的用户信息了,这证明用户已经被删除了,如下图所示</p><p style="text-align:center;margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";"><img style="max-width:100%!important;height:auto!important;" title="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" alt="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" src="https://zhuji.jb51.net/uploads/img/202305/53a14628948cffd57e262c90b1674051.jpg"/></p><p style="margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";">
5、然后我们进<strong>入home文件夹,</strong>你能看到的是所删除的用户,<strong>它的文件夹没有被删除</strong>,如下图所示</p><p style="text-align:center;margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";"><span style="color:#428bca"><img style="max-width:100%!important;height:auto!important;" title="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" alt="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" src="https://zhuji.jb51.net/uploads/img/202305/12c2c1a1ffd835ddec1d04805c0d7eb1.jpg"/></span></p><p style="margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";">
6、如果你也想把用户的文件夹也删除,<strong>需要带上r</strong><strong>参数</strong>,如下图所示,但是执行这个操作一定要留心</p><p style="text-align:center;margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";"><span style="color:#ff0000"><img style="max-width:100%!important;height:auto!important;" title="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" alt="Ubuntu系统普通用户怎么删除? Ubuntu删除账户的教程" src="https://zhuji.jb51.net/uploads/img/202305/dc6d6218744fc51f4a5d94c4db75f606.jpg"/></span></p><p style="margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";">
7、综上所述,在Ubuntu中删除一个用户主要运用<strong>userdel命令</strong>,<strong>注意其中的参数r的使用。</strong></p><p style="margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";">
以上就是就是Ubuntu删除账户的教程,希望大家喜欢,请继续关注。</p>
頁:
[1]