>> Hi all,
>> Quick question for you all: how can I delete from the console a file called
> "--preserve-permissions" that some twit created. Neither "rm" nor "mv"
> will work as standard as they both assume that I am trying to pass some
> option.
You could try 'rm -i *' if your version of 'rm' isn't new... or
From man pages :
GNU rm, like every program that uses the getopt function
to parse its arguments, lets you use the -- option to
indicate that all following arguments are non-options. To
remove a file called `-f' in the current directory, you
could type either
rm -- -f
or
rm ./-f
The Unix rm program's use of a single `-' for this purpose
predates the development of the getopt standard syntax.
This second option is the preferred one... it's far too easy to
forget the '-i' in the first (which is why people have a tendancy
to create files called -i all over the place...)
>> Thanks,
>> Ruairi
>>>> --
> Irish Linux Users' Group: ilug at linux.ie>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
--
** Chris Higgins e: chris.higgins at horizon.ie **
** Technical Business Development tel: +353-1-6204916 **
** Horizon Technology Group fax: +353-1-6204949 **
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!