[comp.os.minix] pcMinix, Help; ansi character dir names, removal.

boyer@sumax.seattleu.edu (Chuck Boyer) (06/20/91)

ni
Thank you for your attention to this post.
I am using Minix 1.3 on an at.
I have had two strange directories created in my /usr directory;

drwxrwxrwx   2   root    32  Jan1 1970  >3LR
drwxrwxrwx   2   root    32  Jan1 1970  |^

created, perhaps in the process of un'tar'ing or compress -d some files?
(The same thing happened to me on my Unix machine at work, and the sysop
suggested that that was perhaps how it was created)
At work 'rm -r \|\^ worked to remove the dirs (the characters were different).
On Minix I tried lots of variations of the above without results. Hmmm...

(rm -r \|\^, rm -r '\|\^', rmdir \|\^, rmdir |^, rmdir -r |^, rmdir -f |^)
etc.
Is there any harm in having those bogus dirs there? (I like to keep a clean
structure). Also, could somebody please explain to me what the numbers
mean in the ls node listing above and below?

drwxrwxrwx   11  root  192  Jun 13 20:21  src

For instance; what is the 11 in reference to? and the 192, I guessed that
the 32 is an empty directory, because I created a directory and it had that
number on it also. (I can surmise the date and time.

Thanks,
chuck

-- 
- - - - - - - - -
Chuck Boyer, ITS, Seattle University
boyer@sumax.seattleu.edu
- - - - - - - - -

Joerg Conradt <jac@unlisys.in-berlin.de> (06/26/91)

> 
> ni
hi

> Thank you for your attention to this post.
> I am using Minix 1.3 on an at.
> I have had two strange directories created in my /usr directory;
> 
> drwxrwxrwx   2   root    32  Jan1 1970  >3LR
> drwxrwxrwx   2   root    32  Jan1 1970  |^
> 
> created, perhaps in the process of un'tar'ing or compress -d some files?
> (The same thing happened to me on my Unix machine at work, and the sysop
> suggested that that was perhaps how it was created)
> At work 'rm -r \|\^ worked to remove the dirs (the characters were different).
> On Minix I tried lots of variations of the above without results. Hmmm...
> 
> (rm -r \|\^, rm -r '\|\^', rmdir \|\^, rmdir |^, rmdir -r |^, rmdir -f |^)
> etc.
> Is there any harm in having those bogus dirs there? (I like to keep a clean
> structure). 

you can write a small shell scrip, e.g.

for i in *
do
  echo -n "next file $i delete it? "
  read d
  if [ "$d" = "y" ]
  then rm "$i"
  fi
done

this will ask you for each file in the directory to delete it...
of course you can replace rm by rm -r if you want to remove directorys.

> Also, could somebody please explain to me what the numbers
> mean in the ls node listing above and below?
> 
> drwxrwxrwx   11  root  192  Jun 13 20:21  src
> 
> For instance; what is the 11 in reference to? and the 192, I guessed that
> the 32 is an empty directory, because I created a directory and it had that
> number on it also. (I can surmise the date and time.
> 
if you create a new file in a directory, the value 32 becomes 16 more,
the first 32 are for "." and "..". and even if you delete a file in that
directory, the 16 stays, because the file-name is remembered in the 
directory-file. i don't know anything about the other number.
> Thanks,
> chuck
> 
hope this helps
joerg
--
Joerg Conradt   Berlin, Germany  ||  UUCP:  jac@unlisys.in-berlin.de