Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 1995 11:33:27 -0500 (EST)
From:      "Michael C. Newell" <mnewell@lupine.nsi.nasa.gov>
To:        Chris Kleymeer <kleymeer@telalink.net>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: unknown files
Message-ID:  <Pine.SUN.3.91.950315113058.25162J-100000@lupine.nsi.nasa.gov>
In-Reply-To: <199503151559.JAA09704@eden.telalink.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, 15 Mar 1995, Chris Kleymeer wrote:

>      I'm hoping someone can help me with this, I've got these two files (see
> EOF) that contain nothing and which I can not delete. Is there anything I
> can do to remove them? They are in my root dir.I am not clear as to how they
> were created. Thanks for any help with this.
> 
> drwxr-xr-x  17 root  wheel      512 Nov 22 10:44 var
> drwxr-xr-x   2 root  wheel      512 Feb 28 16:29 x11r6
> -rw-rw-r--   1 root  wheel        0 Mar  7 13:02 ~^s^F^E^K^~^F^C}^x^O^E^^Bj^h^?
> ^@^?^?^I^C^C^D^D^E^[}
> -rw-rw-r--   1 root  wheel        0 Mar  7 13:02 ^P^C=XR^Ft^O^O^~^D3P^h^
> uH^B^k^M^P^P^P^O^~^D3P^h^ZU^B^C^D^D^E^@

This happens occasionally to me when I accidentally cat a binary file to 
a program that gets its output file names from stdin....  Very annoying...

What I generally would do in this case is

  # mv -i var x11r6 ..
  # rm *
  # mv ../var ../x11r6 .

The "-i" on the first mv command is to make sure if there already is a 
../var or ../x11r6 that I don't overwrite it.

Hope this helps,

Mike

+--------------------------------------+------------------------------------+
|Mike Newell                           | The opinions expressed herein are  |
|NASA Science Internet Network Systems | my own, and do not necessarily     |
|Sterling Software, Inc.               | reflect those of the NSI program,  |
|MNewell@nsipo.nasa.gov                | Sterling Software, NASA, or anyone |
|+1-202-434-8954                       | else.                              |
+--------------------------------------+------------------------------------+




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.950315113058.25162J-100000>