1833779 Members
2058 Online
110063 Solutions
New Discussion

suspect directory

 
Jairo Campana
Trusted Contributor

suspect directory

Hello I want delete directory
I obtain this error:

# ll
drwxr-xr-x 2 bde users 96 Jan 26 11:21 bde
drwxr-xr-x 2 bytuning users 96 Jan 26 11:23 bytuning

# rm -r bde
rm: bde non-existent
#

# ll -ld bde
bde not found
#

I suspect that , the directory this create with character special
legionx
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: suspect directory

The use the ls -b option to display the non-printable characters in octal notation. You can then do something like rmdir -i b* to interactively prompt you to remove this directory.

Man ls and rmdir for details.
If it ain't broke, I can fix that.
RAC_1
Honored Contributor

Re: suspect directory

ll|cat -v

Will show if it has any special char.

rm -ir bde*

ll -il

find . -inum "inodeno" -exec rm -ir {}\;

Anil
There is no substitute to HARDWORK
Jean-Luc Oudart
Honored Contributor

Re: suspect directory

use ll -ld "bde*"

then rm -i -f "bde*"

Regards,
Jean-Luc
fiat lux
Jairo Campana
Trusted Contributor

Re: suspect directory

yeeaaaaaaaah

nms1 # ls -b
BisuttiN ChavezP RamalloH VinualeC intranet nnm_serv
BonfilM Dchiazza RufinoI bde\010\010\010\010\010\010\010\010\010

nms1 # ll|cat -v
total 36
drwxr-xr-x 2 CampanaJ users 96 Jan 26 11:21 bde^H^H^H^H^H^H^H^H^H
drwxr-xr-x 2 belieraa users 96 Jan 26 11:23 belieraa

legionx