From owner-freebsd-questions Mon Sep 28 02:42:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA08250 for freebsd-questions-outgoing; Mon, 28 Sep 1998 02:42:04 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns.cityip.co.za (ns.cityip.co.za [196.25.223.140]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA08019 for ; Mon, 28 Sep 1998 02:39:50 -0700 (PDT) (envelope-from wjv@cityip.co.za) Received: from wjv by ns.cityip.co.za with local (Exim 1.82 #2) id 0zNZlP-0005m2-00; Mon, 28 Sep 1998 11:38:39 +0200 Message-ID: <19980928113839.H22025@cityip.co.za> Date: Mon, 28 Sep 1998 11:38:39 +0200 From: Johann Visagie To: "Rustam B. Abdullaev" , FreeBSD Questions Subject: Re: Directory size... Mail-Followup-To: "Rustam B. Abdullaev" , FreeBSD Questions References: <360BA7E7.48E41E20@eanetways.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <360BA7E7.48E41E20@eanetways.com>; from Rustam B. Abdullaev on Fri, Sep 25, 1998 at 07:25:43PM +0500 X-PGP: ftp://ftp.cityip.co.za/users/wjv/pubkey.asc Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 25 Sep 1998 at 19:25 SAT, Rustam B. Abdullaev wrote: > > How can I get the size of all files in directory with all it's > subdirectories? Read the man page for du(1). Example: To get the sizes of all subdirectories of the current directory, sorted with the biggest first: $ du -sk */ | sort -rn -- V Johann Visagie | Email: wjv@CityIP.co.za | Tel: +27 21 419-7878 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message