Just to add a couple more ideas to the ones already mentioned (Hey, Linux
is great for having many ways to accomplish tasks!):
When using rm, try tab-completions for the offending filenames (possibly
enclosing in quotes as someone else suggested) to get exact matches.
Backslashes will aid in passing control-type characters.
Another way around this (although rather clumsy), seems to be using ftp.
The delete command (particularly if you have NcFTP, which supports
tab-completion of filenames) in ftp seems to be capable of zapping files
(or renaming them) with names that otherwise give shell programs fits!
Thus you may ftp to localhost and delete your ugly file. Note that if you
need root priveleges to do your deed, you will need to temporarily comment
out `root` in your /etc/ftpusers (or equivalent) file, so that you are
permitted to log in as root under ftp.
73 de Brett, KB5CDX
On Tue, 15 Dec 1998, Karl F. Larsen wrote:
> I hit my mouse key 2 at a poor time and sent a lot of text to the
> prompt. I tried rm and it got part of it but one long line I can't rm or
> mv or kill or anything.
>
> When I use ls -i I see the offending line has an inode number
> which I think a smart person can delete and solve my problem.