linux - 如何在 ubuntu 15.04 中删除已删除用户的主文件夹

标签 linux

<分区>

我已经使用以下命令删除了用户,即 hduser

sudo userdel hduser

在给出上面的命令后,我刚刚使用 grep 命令检查 hduser 是否被完全删除。

I have listed whether hduser has deleted completely or not then i got the below error message

So when I tried to delete hduser in home directory I got error message saying that cannot remove device or resouce busy as below

那么我应该如何删除主目录中的 hduser 呢?

最佳答案

“hduser”文件夹在我的主目录中被删除,只是通过以 root 身份登录并给出以下命令。我的错误是我没有以 root 身份登录。

root@system3:/home# sudo rm -rf /home/hduser/

关于linux - 如何在 ubuntu 15.04 中删除已删除用户的主文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35696455/

相关文章:

linux - Git 存档行结尾与克隆不同

linux - 经过一定时间后释放字符驱动程序中的互斥量

linux - 连接到 UCS/Samba 服务器的 Windows 客户端 - 加入操作不成功

c - 内部文件?系统调用读写

linux x64加法程序

linux - 我可以在 Linux 上构建和编译跨平台 Xamarin 应用程序吗?

java - Linux 上 Java 开发的常见做法是什么?

linux - python脚本通过传递参数来检查磁盘空间

c++ - 将 std::map 作为默认参数传递

linux - 语法错误 : unexpected end of file