PDA

View Full Version : Linux Help please



shocky123
03-31-2005, 05:34 PM
Alright.. so somehow on our AFS.. someone has managed to rename a file from it's original (valid) tar name... to: "-d.tgz"
Nonetheless.. the file needs to be deleted, normal syntax for deleting this results in 'file not found' or 'invalid option'
I've tried using the \- thingys.. but to no avail.

Anybody ever had a similar problem.. or maybe know a workaround for getting rid of the file??
(btw.. renaming the file doesnt work :( )

Thanks,

~Kyle

Hoser
03-31-2005, 09:54 PM
I think that you can delete the file if you use the entire path name surrounded by quotation marks.

Like rm "/usr/shocky123/-d.tgz"

I don't have a Linux box up and running now, so I'm not sure if this will work.

doolittle
03-31-2005, 11:35 PM
is the file running?

shocky123
04-02-2005, 08:55 AM
no the file isnt running.. I'll try your recommendation Hoser and let you guys know if it works :)

thanks,

~Kyle

sho.gun
04-02-2005, 02:25 PM
if all else fails, maybe you can temporarily copy the other files to a different folder, rm *, then copy it back.