View previous topic :: View next topic |
Author |
Message |
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Wed Dec 28, 2005 7:57 pm Post subject: Can't delete files that begin with a tilde (~) |
|
|
I opened an MS Word doc in windows from a SAMBA share, and Word left one of those ~dsfdf.tmp files behind.
Try as I might have, I couldn't delete it in linux. If I typed the system thought I was referrencing something in my home directory. I had to go back into windows to get rid of the file.
Does anyone know of a less aggravating way to fix this?
Thanks. |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Wed Dec 28, 2005 8:00 pm Post subject: |
|
|
You can enclose the file name in single quotes to have the shell pass it through to rm as-is:Hope that helps! _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Wed Dec 28, 2005 8:01 pm Post subject: |
|
|
Alternatively, you can just escape the tilde.
_________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Wed Dec 28, 2005 8:03 pm Post subject: |
|
|
Thanks guys. Hopefully it won't happen again, but it's nice to have the right trick up my sleve if it does. |
|
Back to top |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Thu Dec 29, 2005 3:58 am Post subject: |
|
|
& also with
_________________ 1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread. |
|
Back to top |
|
|
|