LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Weird undelteable file!! (https://www.linuxquestions.org/questions/linux-newbie-8/weird-undelteable-file-481649/)

itz2000 09-08-2006 01:52 PM

Weird undelteable file!!
 
I've got a weird file on the Desktop which I cannot somehow delete via GUI (which make sense cause it's root file) but the error I get is : File Does not exsist!


I've done the following via terminal :
Code:

su
chown zuki:zuki /home/zuki
exit
cd ~/Desktop/
rm -rf (filename)

but it's not just that, the file is weird! it has weird permissions! also as root :
Code:

su
pass
cd /home/zuki/Desktop
rm -rf (filename)
(gives me error : Cannot find FILENAME

it's like the file doesn't exsist...

anyways : check this weird output :
Code:

(as root)
[root@localhost Desktop]# ls -al
total 36696
drwx------  8 zuki zuki    24576 Sep  8 21:43 ./
drwx--x--x  86 zuki zuki    4096 Sep  8 21:46 ../
-rw-r--r--  1 zuki zuki    5581 Jan 16  2006 device.desktop
-rw-r--r--  1 zuki zuki      69 Jan 16  2006 .directory
-rw-r--r--  1 zuki zuki  110830 Jul 15 13:07 fiappleblue211.ace
-rw-rw-r--  1 zuki zuki      374 Apr 24 15:43 Gaim.desktop
-rw-r--r--  1 zuki zuki    4361 Jan 16  2006 Home.desktop
-rw-rw-r--  1 zuki zuki  196080 Sep  8 19:15 IMG_0988.JPG
-rw-r--r--  1 zuki zuki 16480004 May  3 13:57 jre-1_5_0_07-linux-i586.rpm
-rwxrwxr-x  1 zuki zuki 16306335 Jul 17 14:48 jre-1_5_0_07-linux-i586-rpm.bin*
drwxrwxr-x  29 zuki zuki    4096 Sep  8 17:26 libs/
lrwxrwxrwx  1 zuki zuki      89 Jan 16  2006 Mozilla Firefox.desktop -> /var/lib/menu-xdg/applications/Mandrakelinux/Internet/WebBrowsers/Mozilla Firefox.desktop
drwxrwxr-x  2 zuki zuki    4096 May 28 12:10 rar/
drwxrwxr-x  2 zuki zuki    4096 Apr 15 17:41 RPMs/
-rw-rw-r--  1 zuki zuki    22941 Sep  2 18:11 sscpp1.jpg
-rw-rw-r--  1 zuki zuki  169731 Sep  2 18:10 sscpp.jpg
-rw-rw-r--  1 zuki zuki      66 Aug 25 21:40 Text File
-rw-rw-r--  1 zuki zuki        2 Aug 25 21:33 Text File~
-rw-r--r--  1 zuki zuki    4795 Jan 16  2006 trash.desktop
Z8~��nbr--  1 zuki zuki        6 Jun 28 18:34 uu3Ƀ���v�^��5cʄ24�#�V6V
      ϭ)
b)���XqX6Y0

if you see weird letters, that's what I see aswell!

Dan04 09-08-2006 02:05 PM

Have you tried "rm -f uu3*"?

jstephens84 09-08-2006 02:19 PM

what happens when you try something like vi uu3<then hit tab key and see if it will auto fill the rest of the name>

itz2000 09-08-2006 02:53 PM

Yes, Offcourse I did try rm -f uu*

I couldn't have VIed it,
when I vi it, it's like I VI a file which doesn't exsist (so it creates a new file)

jstephens84 09-08-2006 02:57 PM

This sounds like a stupid question but have you rebooted. Maybe it will clear it's self out.

Samoth 09-08-2006 03:04 PM

It seems like a file that is using a different encoding. Why dont you do a "find" for files edited at the date specified by "ls -la" and then pipe that into a command to get rid of it.

vls 09-08-2006 03:40 PM

Quote:

Z8~��nbr-- 1 zuki zuki
Whatever it is it's severly screwed just looking at the file perms from ls.

Try command 'ls -i' to get the inode number for the file then try find

Code:

find . -inum inode# -ok rm {} \;
-ok will ask for confirmation just in case you type the inode number wrong. Not that I have ever typed the wrong file name to an rm command.:rolleyes:

itz2000 09-08-2006 09:55 PM

Rebooting/shutting down didn't work(I already have this problem for months, now I'm just trying to fix it)

This is what ls -i gives me (as root)
Code:

[root@localhost Desktop]# ls -i
5750984 device.desktop*
5767193 fiappleblue211.ace*
5753396 Gaim.desktop*
5750983 Home.desktop*
5751468 IMG_0988.JPG*
5754340 jre-1_5_0_07-linux-i586.rpm*
5767968 jre-1_5_0_07-linux-i586-rpm.bin*
5767313 libs/
5751012 Mozilla Firefox.desktop@
 294914 rar/
5767310 RPMs/
5750789 torrentas/
5750986 trash.desktop*
Z8~��nb uu3Ƀ���v�^��5cʄ24�#�V6V
      ϭ)
*)���XqX6Y0

5751504 zuki777.m3u*

also might be usfull
Code:

[root@localhost Desktop]# ls -la | grep "6 Jun"
Z8~��nbr-x  1 zuki zuki        6 Jun 28 18:34 uu3Ƀ���v�^��5cʄ24�#�V6V
      ϭ)
[root@localhost Desktop]# ls -lai | grep "6 Jun"
Z8~��nb -rwxr-xr-x  1 zuki zuki        6 Jun 28 18:34 uu3Ƀ���v�^��5cʄ24�#�V6V
      ϭ)


AwesomeMachine 09-09-2006 12:28 AM

Try this: Install the coreutils package again. If it says it is already installed, uninstall it. Then, install it again. Your tools might be compromised, and giving you misleading output. After you do that, make a directory somewhere, and move all the files in /home/zuki/Desktop to the directory you made, mv Desktop/* /directory/. Do ls -la in /home/zuki/Desktop and see what it says. If the file is still there try rm -rf *. If it isn't there, check in the new directory. If it's in the new directory you know it is a real file. That square with the "0243" in it is a Latin capital letter B with a slash in it. You can find that with charmap, copy it to the clipboard, paste it into terminal, and use it to identify the file.

vls 09-09-2006 01:52 AM

Do you have Midnight Commander (mc) installed?
You could highlight the file and hit F8 to delete. Worth a try.

itz2000 09-09-2006 07:20 AM

Quote:

Originally Posted by vls
Do you have Midnight Commander (mc) installed?
You could highlight the file and hit F8 to delete. Worth a try.

Thanks, Done it, worked great.



I'm trying to remember where it came from though :]

vls 09-10-2006 12:49 AM

Quote:

Originally Posted by itz2000
Thanks, Done it, worked great.



I'm trying to remember where it came from though :]

I've had weird file names before (usually from strange spastic typing on my part :) ). mc usually does the trick. I should of thought of it earlier.


All times are GMT -5. The time now is 12:39 PM.