Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1463127
  • 博文数量: 823
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 5002
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-28 17:39
文章分类

全部博文(823)

文章存档

2011年(1)

2008年(822)

我的朋友

分类: LINUX

2008-08-28 17:42:14

 
以前下载了gftp的安装包,解压之后用命令安装没有成功,删除gftp-2.0.18目录之后,gftp-2.0.18目录留在了回收站中,不过清空回收站的时候却提示权限不够,删除不了了面的.PO文件,在网上搜索,得到要用下面这个命令来强制删除GNOME下回收站里面的所有文件。

sudorm-rf~/.local/share/Trash/files/*

我用这个命令,试了N次都没有成功。

[charles@localhost~]$sudorm-rf~/.local/share/Trash/files/*
[sudo]passwordforcharles:
charlesisnotinthesudoersfile.Thisincidentwillbereported.

直接用rm-rf~/.local/share/Trash/files/*命令却提示我权限不够

[charles@localhost~]$rm-rf~/.local/share/Trash/files/*
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/fsplib/.deps/fsplib.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/fsplib/.deps/lock.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/mkstemps.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/local.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/rfc2068.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/rfc959.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/ftps.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/https.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/misc.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/config_file.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/sslcommon.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/cache.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/bookmark.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/protocols.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/fsp.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/pty.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/lib/.deps/sshv2.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/text/.deps/textui.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/text/.deps/gftp-text.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/misc-gtk.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/chmod_dialog.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/transfer.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/view_dialog.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/delete_dialog.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/gftp-gtk.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/dnd.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/menu-items.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/gtkui_transfer.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/gtkui.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/bookmarks.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/gtk/.deps/options_dialog.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/uicommon/.deps/gftpuicallbacks.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.0.18/src/uicommon/.deps/gftpui.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/fsplib/.deps/fsplib.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/fsplib/.deps/lock.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/mkstemps.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/local.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/rfc2068.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/rfc959.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/ftps.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/https.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/misc.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/config_file.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/sslcommon.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/cache.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/bookmark.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/protocols.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/fsp.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/pty.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/lib/.deps/sshv2.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/text/.deps/textui.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/text/.deps/gftp-text.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/misc-gtk.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/chmod_dialog.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/transfer.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/view_dialog.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/delete_dialog.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/gftp-gtk.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/dnd.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/menu-items.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/gtkui_transfer.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/gtkui.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/bookmarks.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/gtk/.deps/options_dialog.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/uicommon/.deps/gftpuicallbacks.Po”:权限不够
rm:无法删除“/home/charles/.local/share/Trash/files/gftp-2.2.0.18/src/uicommon/.deps/gftpui.Po”:权限不够

用su命令,然后用下面的命令

[charles@localhost~]$su

密码:
[root@localhostcharles]#rm-rf~/.local/share/Trash/files/*
[root@localhostcharles]#rm-rf~/.local/share/Trash/files/*
[root@localhostcharles]#rm-fr$HOME/.local/share/Trash/files/*

同样删除不了,我都头大了,直接用cd命令,和ls-a命令浏览到.local/share/Trash/files/目录下,用rm-rf*命令强制删除所有文件,终于成功!

[root@localhostcharles]#cd.local
[root@localhost.local]#ls-a
...share
[root@localhost.local]#cdshare
[root@localhostshare]#ls-a
...applicationsaudaciouscodeinadesktop-directoriesTrash
[root@localhostshare]#cdTrash
[root@localhostTrash]#ls-a
...filesinfo
[root@localhostTrash]#cdfiles
[root@localhostfiles]#ls-a
...gftp-2.0.18gftp-2.2.0.18
[root@localhostfiles]#rm-rf*
[root@localhostfiles]#ls-a
...
[root@localhostfiles]#

终于删除成功。

解决清空不了Fedora 9回收站的办法解决清空不了Fedora 9回收站的办法解决清空不了Fedora 9回收站的办法解决清空不了Fedora 9回收站的办法解决清空不了Fedora 9回收站的办法解决清空不了Fedora 9回收站的办法解决清空不了Fedora 9回收站的办法解决清空不了Fedora 9回收站的办法解决清空不了Fedora 9回收站的办法解决清空不了Fedora 9回收站的办法
阅读(292) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~