(for some reason the linux section wouldn't let me post a thread)
ok so I was being retarded and I did
[code]cat /dev/null > -r[/code]
and now there's a null file named '-r' that I can't remove:
[code]
[*****@localhost tempdir]$ ls -ahl
-rw-r--r-- 1 ***** ***** 0 Feb 3 14:11 -r
[*****@localhost tempdir]$ rm -r
rm: missing operand
Try 'rm --help' for more information.
[*****@localhost tempdir]$ rm '-r'
rm: missing operand
Try 'rm --help' for more information.[/code]
what do?
[quote]To remove a file whose name starts with a `-', for example `-foo',
use one of these commands:
rm -- -foo
rm ./-foo
[/quote]
Straight from rm --help
thanks, should have read the help for more than 5 seconds :doh:
Sorry, you need to Log In to post a reply to this thread.