Quantcast
Channel: LinuxQuestions.org - Blogs - Ztcoracat
Viewing all articles
Browse latest Browse all 25

How To Remove Files When the rm -rf fails

$
0
0
Not being able to remove files with the rm -rf command is pretty annoying.
When make uninstall or make clean fails as well try this:

Open the Natailus file manager as 'root':
Code:
sudo gksu natailus
Once the file manager launches be careful where you go and what you delete.
Either delete from the right click menu or send those unwanted files to the trash.

If you only have a handful of files to remove/delete you can get rid of them by their inode reference number.

First try:
Code:
stat {file name} <OR>
ls -i {file name}
In this example the inode # is 782263.
Code:
 find . -inum 782263 -exec rm -i {} \;
Hit Enter and you'll be asked for confirmation. Just type "Y" and the file is permanently removed.

Here's a tutorial on How To Delete or Remove Files With Inode Number:
http://www.cyberciti.biz/tips/delete...de-number.html

Cheers:-

Viewing all articles
Browse latest Browse all 25

Trending Articles