From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075322406464.tru64-unix-managers.marc@archive.invalid> From: Chua Koon Teck Date: Sun, 06 Aug 1995 15:18:34 +0000 To: tru64-unix-managers Subject: Summary: filename missing (fwd) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075322406464 Hi This list is simply terrific. Within minutes of posting my problem, I have received many useful replies and solved the problem. I have attached one of the reply which will explain and solve the problem. Thank you. Have a nice day. Regards ____________________________________________________________________________ Chua Koon Teck Singapore Telecom Comcentre SingNet email=koonteck@singnet.com.sg URL="http://www.singnet.com.sg/" ____________________________________________________________________________ ---------- Forwarded message ---------- Date: Sun, 6 Aug 1995 10:45:48 -0400 (EDT) From: Alex Garthwaite To: koonteck@singnet.com.sg Subject: Re: filename missing Chua Koon Teck wrote: > > Hi > > My system is experiencing some directory listing which looks like the > following : > > -rw------- 1 wsped adusub 1025 Jan 13 1995 > drwxr-xr-x 7 wsped adusub 8192 Aug 6 19:05 . > drwxr-xr-x9663 root system 253952 Aug 6 01:22 .. > -rw------- 1 wsped adusub 2442 Apr 28 13:06 .addressbook > -rwxr-xr-x 1 wsped adusub 1499 Feb 22 1994 .cshrc > > Notice that the first entry is a file with no name. Can someone teach me > how to remove such file ? What is the cause of such a file ? Most likely, the filename consists of control characters. Try doing "ls -l | cat -vet". This will display the control characters as two character sequences (i.e., ascii 1 will be displayed as ^A). Note that the newline at the end of each line will be displayed as a '$'. Once you know what the filename is, you can use quoting if necessary to build the argument to rm. When doing the rm command, I would try using some wildcarding to make the specification easier and to include the '-i' option so that you have the option of not removing file(s). Files like this are usually caused by a program that opens a file whose filename consists (partially) of control characters. A common cause is a program that prompts for a filename and the user does things like press the cursor keys. Good luck. -- Alex Garthwaite Internet: alex@cis.upenn.edu Systems Programmer Computer and Information Science University of Pennsylvania (215) 898-5617