From owner-freebsd-questions Sat Feb 17 13:43:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from news.lucky.net (news.lucky.net [193.193.193.102]) by hub.freebsd.org (Postfix) with ESMTP id 1523437B4EC for ; Sat, 17 Feb 2001 13:43:25 -0800 (PST) Received: (from mail@localhost) by news.lucky.net (8.Who.Cares/8.Who.Cares) id XQR23374 for freebsd-questions@freebsd.org; Sat, 17 Feb 2001 23:43:20 +0200 (envelope-from news@news.ntu-kpi.kiev.ua) From: Andrey Simonenko To: freebsd-questions@freebsd.org Subject: Re: directory Date: Sat, 17 Feb 2001 23:29:13 +0200 Organization: NTUU "KPI" Message-ID: References: <3A8D2F2C.26790.23AAADDE@localhost> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: igloo.uran.net.ua 982444088 76151 10.0.1.184 (17 Feb 2001 21:08:08 GMT) X-Complaints-To: newsmaster@news.ntu-kpi.kiev.ua In-Reply-To: <3A8D2F2C.26790.23AAADDE@localhost> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You can "cd", "rm" -directories in some ways: 1. Use absolute or relative path: rm -d ./-dir rm -d /path/to/-dir 2. Use "--" option: rm -d -- -dir "--" stops argument parsing. It also works with "cd" (I use bash), but I am not sure that it will work with some other shell. On Fri, 16 Feb 2001, Jim McIver wrote: > Downloaded a couple of *.tar files from the FreeBSD webpage. > > Extract with the tar -xvf command and they created the following > directory: > /pub/FreeBSD/branches/-current/ports/misc/...... > > Anyway, I'm unable to cd into the -current directory to run the > makefile. How do I cd to a -minus directory? > > man pages indicate I can remove a directory and it's contents, but to > see the rm(1) command. > > When I try to do a "man rm(1)" it won't work either. > > Any suggestions? > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message