Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] everlasting directory



On Thu, Jul 11, 2002 at 11:02:48AM +0900, Michael Doughty wrote:
> On 11 Jul 2002 10:20:35 +0900, Eric O. Flores wrote:
> > > 1) Don't use a GUI file manager.  
> > > 2) what does an 'ls -l /home/eoflores' give?
> > > 
> > > Probably it is set immutable.  
> > > man chattr
> > > 
> > Michael,
> > 
> > DRWXRWXRWX 3 eoflores eoflores 4096 77n 10dammed/ 
> > 
> > I am working within terminal as su.
> > 
> 
> Well, what is in that directory?  Looks like you have at least
> one other directory in there.  Is that directory also named
> 'dammed'?  
> 
> Try these:
> 'find /home/eoflores/Desktop -maxdepth 5 | xargs ls -ldi'
> and 
> 'find /home/eoflores/Desktop -maxdepth 5 | xargs lsattr -d'
> 
> Btw, anyone know a better way to do this?  I know ls and lsattr will
> both do recursive, but this is the only way I could think of to limit
> the depth.
> 
> Michael

find seems to me to be best approach though I might suggest this instead:

find /home/eoflores/Desktop -maxdepth 5 -exec ls -ldi '{}' ';'
find /home/eoflores/Desktop -maxdepth 5 -exec lsattr -d '{}' ';'

or

find /home/eoflores/Desktop -maxdepth 5 | while read i; do
	ls -ldi $i;
	lsattr -ldi $i;
done

never mind, I don't think any of these are necessarily preferable. Just
different ways to look at it.

--Matt is going back to sleep now.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links