Mailing List Archive

Support open source code!


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

Re: tlug: Total size command?



On Fri, 30 Oct 1998, Jonathan Byrne - 3Web wrote:

> Is there a command that will tell me the total space occupied by all files in
> a single directory or a tree?  Apparently, ls doesn't have a switch for this
> (you'd think it would, but maybe there's some other command instead?)

sure, use 'du -s'.  ie, if I wanted to know space used in /home,

du -s /home

you can also:

du -s .

for the current directory.  du is a neat command, check out the man page.

--------------------------------------------------
Scott M. Stone <sstone@example.com, sstone@example.com>
Head of TurboLinux Development/Systems Administrator
Pacific HiTech, Inc (USA) / Pacific HiTech, KK (Japan)


---------------------------------------------------------------
Next Nomikai: 20 November, 19:30 Tengu TokyoEkiMae 03-3275-3691
Next Technical Meeting: January, 1999 (details TBA)
---------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links