From owner-freebsd-questions Wed Mar 15 08:34:56 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA03984 for questions-outgoing; Wed, 15 Mar 1995 08:34:56 -0800 Received: from lupine.nsi.nasa.gov (lupine.nsi.nasa.gov [198.116.2.100]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id IAA03977 for ; Wed, 15 Mar 1995 08:34:53 -0800 Received: (from mnewell@localhost) by lupine.nsi.nasa.gov (8.6.9/8.6.9) id LAA25658; Wed, 15 Mar 1995 11:33:31 -0500 Date: Wed, 15 Mar 1995 11:33:27 -0500 (EST) From: "Michael C. Newell" To: Chris Kleymeer cc: freebsd-questions@FreeBSD.org Subject: Re: unknown files In-Reply-To: <199503151559.JAA09704@eden.telalink.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@FreeBSD.org Precedence: bulk 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. | +--------------------------------------+------------------------------------+