Re: filenames beginning with "-"
Rob Mahurin <robm@mad.scientist.com> wrote:
> Apparently about an hour ago something made a few files in my homedir
> that began with "-", and now I can't read them and can't remove them:
>
> 15:30 ~ $ ls
> total 80
> -rw------- 1 alphengl alphengl 226 Oct 10 14:30 -011405
> -rw------- 1 alphengl alphengl 226 Oct 10 14:33 -011485
> -rw------- 1 alphengl alphengl 226 Oct 10 14:42 -011611
> [...]
> 15:31 ~ $ cat \-011405
> cat: invalid option -- 0
Try something like
$ cat ./-011405
That is, always prepend ./ to the filename if you have files that
start with -
> What are they and how do I make them go away?
I have no idea. Maybe doing cat will help to find out where they
came from.
> Rob
// Heikki
--
Heikki Vatiainen * hessu@cs.tut.fi
Tampere University of Technology * Tampere, Finland
Reply to: