1834007 Members
1967 Online
110063 Solutions
New Discussion

Re: Filesystem problem?

 
SOLVED
Go to solution
yyghp
Super Advisor

Filesystem problem?

I noticed that there are 3 "bin" under the directory, 2 "bin"s are file, 1 "bin" is directory, why? and how can i get rid of those 2 file "bin"?
Thanks a lot!

# pwd
/u02/app/DEV50/rms/forms
# ll
total 1868
drwxrwxr-x 2 oracle rms 16384 Nov 3 08:17 bin
-rw-rw-r-- 1 johnso_b staff 407244 Sep 29 09:18 bin
-rw-rw-r-- 1 johnso_b staff 504488 Nov 3 08:16 bin

# rm bin
rm: bin non-existent
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: Filesystem problem?

Hi:

I suspect the filenames actuall contain some non-graphic charcters. You can expose them with 'ls -lb' to show their octal notation.

An easy way to remove them is to identify their inode ('ls -li'). Note the inode number and do:

# cd /u02/app/DEV50/rms/forms
# find . -inum -exec rm -i {} \;

Regards!

...JRF...
yyghp
Super Advisor

Re: Filesystem problem?

Thanks!
Yes, that's because of non-graphic charcters!
I can see those chars with ftp client, but not putty.
A. Clay Stephenson
Acclaimed Contributor

Re: Filesystem problem?

These filenames probably have unprintable characters embedded in them. Do an ls -b to display those characters. You can then probably do something like rm -i *bi* and answer 'y' for every matching filename that you want to delete and 'n' for those you want to keep.
If it ain't broke, I can fix that.
Sยภเl Kย๓คг
Respected Contributor

Re: Filesystem problem?

Hi,

Login to the system though ftp with root user. at th prompt change to the dir "/u02/app/DEV50/rms/forms

ftp>cd /u02/app/DEV50/rms/forms
ftp>ls -l
ftp>rm *bin*
ftp>bye

Regards,
Sunil
Your imagination is the preview of your life's coming attractions