LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Deleting a file with a "--" prefix

[ILUG] Deleting a file with a "--" prefix

kevin lyda kevin at suberic.net
Wed May 23 10:41:29 IST 2001


On Wed, May 23, 2001 at 09:29:07AM +0100, Colm Buckley wrote:
> Short solution:  rm ./--preserve-permissions
> 
> Longer, more generalised solution : rm -- --preserve-permissions

no, that's specific to gnu utilities and newer utils from other sources.
./-weird.name works with any utility.  your initial one was the more
general solution as it will work on everything from v7 on up, and with
every app that wants a filename on the command line.

and the / dir should have a . dir.  if not, just use /-weird.name.

kevin

-- 
kevin at suberic.net          "Maybe one day downtrodden poo-eaters will
fork()'ed on 37058400       get a fair shake in Savage Love, but it's
meatspace place: home       not going to be today."
http://suberic.net/~kevin                 --dan savage, "savage love"




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell