On Sat, 02 Mar 2013 23:45:30 +0100, Julian H. Stacey wrote: > Hi, > Reference: > > From: Jos Chrispijn <ker...@webrz.net> > > Date: Sat, 02 Mar 2013 18:44:22 +0100 > > Message-id: <51323a76.2040...@webrz.net> > > Jos Chrispijn wrote: > > > > Teske, Devin: > > > rm -R -- -S > > > > > > The "--" tells it "here's the end of the options, here come the > > > file/directories" > > > > Almost: > > > > rm -R -- -S; > > > > did it, thanks very much for you help! > > This also works > rmdir ./-S > (& is probably the best generic naming method, & was valid decades > ago, before rm got the luxury of modern stuff eg -- & would work > for other commands that might not have delimieters such as -- ) > This also work but is over kill : > rmdir './-S'
Just note that the ; has been part of the name in question, so the "end of command" sign would have to be part of the directory name: "rmdir ./-S;" and "rmdir './-S;' would be the alternatives to "rm -R -- -S;". I'd be interested in what happens when you have such a directory name and press PF8 in the Midnight Commander in order to delete it. Now go ahead and create a file "*" in / and tell a junior sysadmin to remove it. ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"