Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 1999 23:53:40 -0700
From:      Kent Stewart <kstewart@3-cities.com>
To:        "Korchagin, Dmitry" <sting@hippo.ru>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Deadless file
Message-ID:  <37BCFB74.97F6178F@3-cities.com>
References:  <000f01beeade$f28515c0$0201a8c0@sting.grata.hippo.ru>

next in thread | previous in thread | raw e-mail | index | archive | help


> "Korchagin, Dmitry" wrote:
> 
> Hello & Help!
> 
> I have created file with name "-z" in mistake and can't remove it.
> 
> $ ls
> -z
> $ rm -z
> rm: illegal option -- z
> 
> How can I remove such files?

Try

rm -- -z

The -- turns off the option field.

Kent

> 
> Best regards, Dmitry Korchagin
> 
> sting@hippo.ru
> 

-- 
Kent Stewart
Richland, WA

mailto:kstewart@3-cities.com
http://www.3-cities.com/~kstewart/index.html

SETI (Search for Extraterrestrial Intelligence) @ Home
http://setiathome.ssl.berkeley.edu/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37BCFB74.97F6178F>