文件夹删不掉,看着好难受
Tofloor
poster avatar
187******09
deepin
2017-05-07 20:28
Author
下了python编译安装完成以后,解压出来的文件夹为什么只能用管理员权限才能删除啊,还有一个python安装文件夹放到回收站就怎么也删不掉了,管理员打开还显示回收站里没东西,谁能帮帮忙,看着好难受
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-05-07 21:13
#1
管理员权限的只有管理员才能删除
Reply View the author
avatar
187******09
deepin
2017-05-07 22:03
#2
https://bbs.deepin.org/post/139078
管理员权限的只有管理员才能删除

??是以管理员身份打开的啊,第一个是在别的文件夹管理员身份成功删除,第二个在回收站怎么也删不了
Reply View the author
avatar
redapple0204
deepin
2017-05-08 00:08
#3
终端-sudo rm -r
Reply View the author
avatar
白菜
deepin
2017-05-08 00:34
#4
本帖最后由 baicai 于 2017-5-7 16:36 编辑

回收站目录在这里/home/linuxmint/.local/share/Trash   
linuxmint换成你的用户目录
用root模式就可以删除了。
因为Linux权限要求比较严格,正常现象



Reply View the author
avatar
catbb49294929
deepin
2017-05-08 01:29
#5
还有一个 python 安装文件夹放到回收站就怎么也删不掉了    // 这是因为你没有权限啊。
管理员打开还显示回收站里没东西                                             // 因为你是用管理员权限打开的,目录都不一样当然没文件啦。
/**
* 科普一下,这里是你的回收站地址 /home/user/.local/share/Trash,而root打开文件管理器,它的回收站地址是 /root/.local/share/Trash,这是两个目录。
* 你想删除的是/home/user/.local/share/Trash里面的文件,却打开了/root/.local/share/Trash这个目录来删文件,当然什么都没有啦。
*/

正确姿势:
打开终端,输入:
sudo rm -rf /home/你的用户名/.local/share/Trash/files/*
sudo rm -rf /home/你的用户名/.local/share/Trash/info/*
Reply View the author
avatar
187******09
deepin
2017-05-08 16:17
#6
https://bbs.deepin.org/post/139078
还有一个 python 安装文件夹放到回收站就怎么也删不掉了    // 这是因为你没有权限啊。
管理员打开还显示回 ...

谢谢,解决啦
Reply View the author