From owner-freebsd-questions Sun Mar 3 21:15:42 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA04393 for questions-outgoing; Sun, 3 Mar 1996 21:15:42 -0800 (PST) Received: from mail.telstra.com.au ([192.148.160.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA04360 for ; Sun, 3 Mar 1996 21:14:13 -0800 (PST) Received: from mail_gw.fwall.telecom.com.au(192.148.147.10) by mail via smap (V1.3) id sma020695; Mon Mar 4 09:08:03 1996 Received: from netbsd08.dn.itg.telecom.com.au(144.139.63.32) by mail_gw.telecom.com.au via smap (V1.3) id sma024715; Mon Mar 4 15:45:33 1996 Received: from netbsd08.dn.itg.telecom.com.au (netbsd08.dn.itg.telecom.com.au [144.139.63.32]) by netbsd08.dn.itg.telecom.com.au (8.6.8/8.6.6) with SMTP id MAA26214; Mon, 4 Mar 1996 12:53:06 +0800 Date: Mon, 4 Mar 1996 12:53:06 +0800 (WST) From: Terry Dwyer To: invalid opcode cc: James FitzGibbon , freebsd-questions@FreeBSD.org Subject: Re: How to delete strange filename In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org Precedence: bulk On Sun, 3 Mar 1996, invalid opcode wrote: > On Sun, 3 Mar 1996, James FitzGibbon wrote: > > > Okay, stupid question here: > > > > Somehow, I've got a file called "-i" in my home directory. How do I > > remove it? Everything I've tried attempts to parse the "-i" as a > > parameter, even with quotes (all varieties). > > James FitzGibbon james@teamos2.org > > Look's like someone tried to exploit your system via suid shell scripts. > rm -rf "-i" Nope that won't work, use rm -- -i The name of the file is being seen as an option all other options after the '--' are ignored as with most other utilities _-_|\ Terry Dwyer E-Mail: tdwyer@netbsd08.dn.itg.telecom.com.au / \ System Administrator Phone: +61 9 491 5161 Fax: +61 9 221 2631 *_.^\_/ Telecom Australia Telstra Corporation MIME capable mailer v Perth WA ( I do not speak for Telstra or Telecom )