Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!ut-emx!zebr360 From: zebr360@ut-emx.uucp (Jerry Heyman) Newsgroups: comp.unix.misc Subject: Re: Unix problem Message-ID: <47608@ut-emx.uucp> Date: 22 Apr 91 04:11:26 GMT References: <14425@medusa.cs.purdue.edu> <1991Apr21.124135.7732@tjhsst.vak12ed.edu> Organization: The University of Texas at Austin; Austin, Texas Lines: 42 In article <1991Apr21.124135.7732@tjhsst.vak12ed.edu> kdeyoe@tjhsst.vak12ed.edu (Kelly DeYoe) writes: |>In article <14425@medusa.cs.purdue.edu> wangjw@ifestos.cs.purdue.edu () writes: |>>Hi, |>> |>> I was using the X-window and somehow generated some garbage files. I |>>cannot remove some files because these files are named "-C", "-f" etc. |>>Can someone tell me how to remove these garbages? |>> |>> Thanks. |>> |>>Jingwen Wang |>> |>>wangjw@cs.purdue.edu |> |> |>To get rid of these files, or simply be able to rename them to |>something more managable, you can go to the parent directory and |>manipulate them that way. i.e.: |> |>cd .. |>rm dir/-C (assuming you started in directory dir) |> |>and *poof*, it's gone. . . |> another way is to preface the files with ./ (for current directory) followed by their name. that way: rm ./-C works fine. Unix expects any thing following a '-' sign to be an option to the command invoked. It doesn't differentiate between them and file names that happen to be the same. |>KD jerry -- Jerry Heyman by day: IBM PSP, AIX Development zebr360@emx.utexas.edu by nite: Adjunct Lecturer at St. Edward's Univ. *All comments are my own and should not be construed to represent any one else