Skip site navigation (1)Skip section navigation (2)
Date:      21 Sep 2002 14:30:42 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Jonas Fornander <jonas@netwood.net>
Cc:        FreeBSD User Questions List <freebsd-questions@freebsd.org>
Subject:   Re: How can I get the directory size
Message-ID:  <1032633042.79277.5.camel@shumai.marcuscom.com>
In-Reply-To: <04b001c2619c$44097c60$0800a8c0@master>
References:  <04b001c2619c$44097c60$0800a8c0@master>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sat, 2002-09-21 at 14:25, Jonas Fornander wrote:
> 
> Is there a way to figure out the size of a users directory?
> I tried all combinations of ls with the flags -s and -k but to no avail.
> 
> I know that I can tar the users directory and then check the size of the
> tarball but that can't be the only way of doing it.

# cd ~user
# du -sk .

This will show you used space in kilobytes.

Joe

> 
> Jonas Fornander - System Administrator
> Netwood Communications, LLC - www.netwood.net
> Find out why we're better - 310-442-1530
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQA9jLrSb2iPiv4Uz4cRArjbAJ0bb7vhd70howWKv5Y7HClHuu+vlACaAnpn
9QOpLcf2FbaY9A28uOTM4fg=
=+F5C
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1032633042.79277.5.camel>