Contaminated File Deletion [Solved]

Questions about the project and the distribution - obviously no support questions here please

Contaminated File Deletion [Solved]

Postby DataMan on Sat Jan 26, 2013 8:31 am

I've got a file that got "borked / contaminated / messsed up" during a trial upload (development LAMP).

The current file name is

file:///var/www/upload/dmflua_08-�ph�m�re.flac

At root priv's I've tried renaming, deleting, changing ownership.

The warning message returns "file does not exist".

I just want to delete the critter so I can delete the holding directory.

Any ideas?

TIA,

-DataMan
Last edited by DataMan on Wed Jan 30, 2013 6:26 am, edited 1 time in total.
Linux'd since 2005 Linux ID 422356 Ubuntu ID 15015
User avatar
DataMan
Level 6
Level 6
 
Posts: 1152
Joined: Thu Dec 04, 2008 6:47 am
Location: Carmel, Indiana USA at /var/www

Linux Mint is funded by ads and donations.
 

Re: Contaminated File Deletion

Postby bjornmu on Sat Jan 26, 2013 8:37 am

The file name doesn't start with file:///, it starts with /var. And is seems to include some strange characters, try removing /var/www/upload/dmflua_08*.flac to avoid having to enter the correct strange characters.
User avatar
bjornmu
Level 3
Level 3
 
Posts: 101
Joined: Wed Dec 19, 2012 2:50 am
Location: Trondheim, Norway

Re: Contaminated File Deletion

Postby DataMan on Sat Jan 26, 2013 12:30 pm

thanks for the response.

The posting shows the entire path.

At root level I attempted to delete the file without the non-ascii characters ... no go.

-DataMan
Linux'd since 2005 Linux ID 422356 Ubuntu ID 15015
User avatar
DataMan
Level 6
Level 6
 
Posts: 1152
Joined: Thu Dec 04, 2008 6:47 am
Location: Carmel, Indiana USA at /var/www

Re: Contaminated File Deletion

Postby bjornmu on Sat Jan 26, 2013 1:06 pm

The file:// prefix is used for access to the file from a web browser, it's not the actual path as seen from the operating system. It would very peculiar indeed (though technically possible) to have such a path, but the triple /// would be redundant.

No, the file path should be /var/www/..... From a terminal,
Code: Select all
rm /var/www/upload/dmflua_08*.flac
should work. Try
Code: Select all
ls /var/www/upload/dmflua_08*.flac
first to confirm that the file exists.
User avatar
bjornmu
Level 3
Level 3
 
Posts: 101
Joined: Wed Dec 19, 2012 2:50 am
Location: Trondheim, Norway

Re: Contaminated File Deletion

Postby xenopeek on Sat Jan 26, 2013 1:13 pm

Or trying finding the file. First, quickly with locate:
Code: Select all
locate dmflua_08

If that doesn't find the exact path, try with find:
Code: Select all
sudo find / -name dmflua_08* 2>/dev/null
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10542
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Contaminated File Deletion

Postby DataMan on Wed Jan 30, 2013 6:26 am

Thanks,

The "locate" did the trick. Turns out the non-ascii characters were addressable as "?".

-DataMan
Linux'd since 2005 Linux ID 422356 Ubuntu ID 15015
User avatar
DataMan
Level 6
Level 6
 
Posts: 1152
Joined: Thu Dec 04, 2008 6:47 am
Location: Carmel, Indiana USA at /var/www


Return to Non-technical Questions

Who is online

Users browsing this forum: DataMan and 1 guest

cron