Operating System - HP-UX
1834789 Members
2977 Online
110070 Solutions
New Discussion

Re: hidden strange subdirectory

 
federico_3
Honored Contributor

hidden strange subdirectory

In a directory there is a strange subdirectory (i don't Know how has been created) that can be listed only using ls -lb (In octal character code rappresentation) its name is 010010010010010010010010:


how can i remove it?

federico
5 REPLIES 5
RikTytgat
Honored Contributor

Re: hidden strange subdirectory

Hi,

Octal 010 is backspace. I suppose this file was created from within a hpterm or xterm with bad tty settings.

Now how do you delete it?

When you do 'ls -lbi', you'll see a the inode number at the beginning of the line. Go to the directory containing the file. Then, use following command:

find . -fsonly -inum -exec rm -i '{}' \;

The -i with the rm gives you the possibility to answer no to cancel the delete.

Hope this helps,
Rik.

RikTytgat
Honored Contributor

Re: hidden strange subdirectory

Hi,

It is a directory? Replace 'rm -i' with 'rmdir' (if directory is empty) or 'rm -f' (if directory is not empty).

Bye,
Rik.
federico_3
Honored Contributor

Re: hidden strange subdirectory

the dir name is not completely exact because
at the beginning of name and every 010 there is a back-slash !

How came has been creted this directory?
About the removal there is no problem!

federico
federico_3
Honored Contributor

Re: hidden strange subdirectory


I have understood how the dir has been created! A series of back-slash and back-space have been typed!


Thanks

federico
RikTytgat
Honored Contributor

Re: hidden strange subdirectory

Hi,

It is a directory? Replace 'rm -i' with 'rmdir' (if directory is empty) or 'rm -f' (if directory is not empty).

Bye,
Rik.