[prev] [thread] [next] [lurker] [Date index for 2005/09/30]
On Thu, Sep 29, 2005 at 06:25:25PM -0700, Michael G Schwern wrote: > On Fri, Sep 30, 2005 at 01:25:13AM +0200, Abigail wrote: > > > earle@pulsar:~$ du -h \.* > > > 4.0K ./Mail > > > 12K ./.ssh > > > 104K ./photos/test > > > Whoa, hold on, "Mail" doesn't begin with a dot. Stop that. Okay, try > > > again. Maybe I need to quote the dot, or something. > > Indeed, Mail doesn't start with a dot. But it doesn't list Mail, does it? > > It lists "./Mail", as it's an entry in ".", which does match ".*". > I think that's the hatefulness here. du is "helpfully" prepending ./ to > everything in the cwd No, it ain't. He told it to report on anything beginning with a dot, of which . is one such directory entry. du by default reports on the directory you tell it to *and everything in it*, hence ./Mail, ./.ssh, and so on. If you just want . then use -s. -- David Cantrell | Nth greatest programmer in the world There is no one true indentation style, But if there were K&R would be Its Prophets. Peace be upon Their Holy Beards.There's stuff above here
Generated at 16:00 on 04 Oct 2005 by mariachi 0.52