无法删除Unix中的目录 [英] Can't remove a directory in Unix

查看:177
本文介绍了无法删除Unix中的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Unix中有一个看似不可删除的目录,其中包含一些隐藏文件,名称起始于$ code> .panfs 。我无法使用以下任一命令删除它:

I've got a seemingly un-deletable directory in Unix that contains some hidden files with names that start .panfs. I'm unable to delete it using either of these commands:

rm -R <dir>
rm -Rf <dir>

任何想法?

推荐答案

尝试使用 root用户删除它,或使用 sudo ,如果您遇到问题

Try to delete it with root user or use sudo, if you are in trouble

使用root帐户使用 rm -rf dir ,它将被删除,因为您应该面临权限问题。

Use rm -rf dir with root account and it will be deleted, since you should be facing a permissions issue.

这篇关于无法删除Unix中的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆