Home » Infrastructure » Unix » remove a file
remove a file [message #98543] Thu, 23 December 2004 18:56 Go to next message
velu
Messages: 10
Registered: February 2002
Junior Member
Hi

I have created a file wrongly with name -laa

if i try to remove it it gives error.

pls help how to remove this file.

thanks
Re: remove a file [message #98549 is a reply to message #98543] Tue, 28 December 2004 02:02 Go to previous messageGo to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
Try "rm -i *laa". Answer yes if you see your file, no for the rest!

Best regards.

Frank
Re: remove a file [message #98553 is a reply to message #98549] Thu, 30 December 2004 01:03 Go to previous messageGo to next message
velu
Messages: 10
Registered: February 2002
Junior Member
Hi
Thanks.
I tried all the possible rm
but it gives the following error.

$ rm -i ?laa
$ rm -i *laa
rm: illegal option -- l
rm: illegal option -- a
rm: illegal option -- a
usage: rm [[-fiRr]] file ...
Re: remove a file [message #98556 is a reply to message #98553] Thu, 30 December 2004 04:14 Go to previous messageGo to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
Also try: rm -- -laa

Best regards.

Frank
Re: remove a file [message #98562 is a reply to message #98556] Tue, 04 January 2005 16:54 Go to previous message
velu
Messages: 10
Registered: February 2002
Junior Member
thanks Frank.
it works fine.
Previous Topic: ORA-12520
Next Topic: unix installation
Goto Forum:
  


Current Time: Tue Nov 26 02:09:56 CST 2024