From owner-freebsd-current Tue Jan 11 14:50: 1 2000 Delivered-To: freebsd-current@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id 9B47F14F26 for ; Tue, 11 Jan 2000 14:49:56 -0800 (PST) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id OAA25732; Tue, 11 Jan 2000 14:49:39 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200001112249.OAA25732@gndrsh.dnsmgr.net> Subject: Re: Additional option to ls -l for large files In-Reply-To: <8070C3A4E99ED211A63200105A19B99B3174A2@mail.edifecs.com> from Michael VanLoon at "Jan 11, 2000 02:39:50 pm" To: MichaelV@EDIFECS.COM (Michael VanLoon) Date: Tue, 11 Jan 2000 14:49:39 -0800 (PST) Cc: joerg@cs.waikato.ac.nz, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Charset windows-1252 unsupported, skipping...] Arghh... windblows... > >> I'm currently dealing with an increasing set of *very* large files, > >> most of them in the order of gigabytes. It becomes impossible to > >> figure the size of a file with ls -l with 9 or more digits displayed. > >> I would propose a new flag to ls which will together with option -l > >> change the unit to kilobytes for files larger than one megabyte, to > >> megabytes for files larger than one gigabyte and gigabytes for files > >> larger than one terabyte. A 'k', 'm' or 'g' respectively should be > >> appended. > >> > >> Would such a patch find the blessing of the team and the maintainer > >> of ls ? > > > >Another thing that ``works for me''. Only make it ki, mi, and gi > >to fit with the new binary mode international appreviation standards, > >unless of cource you use base 10 divisors. > > Why not KB, MB or GB, since that's what you're actually reporting? Because KB MB and GB mean different things than KiB MiB and GiB. K = 10^3, Ki = 2^10 M = 10^6 Mi = 2^20 G = 10^9 Gi = 2^30 > What is this "binary mode international abbreviation standard"? See above... -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message