cancel
Showing results for 
Search instead for 
Did you mean: 

how to remove file?

friend_1
Occasional Advisor

how to remove file?

hi,

how to remove following file

-rwxr-xr-x 1 test test 0 Sep 25 2008 '30-apr-2008'"



7 REPLIES
Michal Kapalka (mikap)
Honored Contributor

Re: how to remove file?

Ivan Krastev
Honored Contributor

Re: how to remove file?

Lijeesh N G_1
Respected Contributor

Re: how to remove file?

Hi,

You can delete this kind of file with inode number;

>>Find out the inode number of this file with,
#ls -il "file name"

>>Remove the file with,
#find . -inum "inode#" -exec rm -i {} \;


Regards,
LIJEESH N G
Dennis Handly
Acclaimed Contributor

Re: how to remove file?

>how to remove following file?

Simple quoting works:
rm -i "'30-apr-2008'\""
Suraj K Sankari
Honored Contributor

Re: how to remove file?

Hi,

For deleting this type of special filename you need to do this step

#rm -i *

now one by one it will ask you for delet.
y for yes and n for no

when it will ask for your file press y

Suraj
Suraj K Sankari
Honored Contributor

Re: how to remove file?

Hi Again,

Miss one step before give "rm -i *" command 1st get into the location of the directiory where your file is.

Suraj
s.raju
Advisor

Re: how to remove file?

to remove this file try this :

rm -i "'30-apr-2008'"

u can remove this file..

Sri