Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Dec 2001 14:36:42 -0500
From:      Joel Dinel <dinjo@touchtunes.com>
To:        Tim DeBoer <deboert@cletus.cornhusker.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ls -lh ???
Message-ID:  <20011223143642.A8994@sunder.touchtunes.com>
In-Reply-To: <Pine.BSF.4.21.0112231317100.17420-100000@cletus.cornhusker.net>; from deboert@cletus.cornhusker.net on Sun, Dec 23, 2001 at 01:23:57PM %2B0000
References:  <Pine.BSF.4.21.0112231317100.17420-100000@cletus.cornhusker.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim,

    BSD ls doesn't have that option. GNU ls does. You can easily install 'gnuls' from
    the ports tree (in /usr/ports/misc/gnuls), and simply make aliases
    around that (alias ls='gnuls')

    That should do the trick.

On Sun, Dec 23, 2001 at 01:23:57PM +0000, Tim DeBoer wrote:
> Date: Sun, 23 Dec 2001 13:23:57 +0000 (GMT)
> From: Tim DeBoer <deboert@cletus.cornhusker.net>
> To: questions@FreeBSD.ORG
> Subject: ls -lh ???
> 
> Hi Folks,
> Red Hat, and probably most other dists of Linux, has an ls command which
> basically makes size output "human readable".
> Like this
> ls -l /var/spool/mail/deboert
> -rw-r-----   1 deboert  mail        18834 Dec 23 12:03
> /var/spool/mail/deboert 
> 
> ls -lh /var/spool/mail/deboert
> -rw-r-----   1 deboert  mail          18k Dec 23 12:03
> /var/spool/mail/deboert
> 
> One thing I've noticed since moving to FreeBSD, is that -h doesn't do this
> translation. It's not a huge flaming big deal, not having it, but it does
> make life easier when dealing with *really* large files and directories.
> 
> I've checked man ls, and came up empty handed.
> Is there a similar option in FreeBSD? Or is that option ls version
> specific?
> 
> --
> 
> Tim DeBoer
> http://www.freebsd-geek.com
> 
> "When you find yourself in the company of a Halfling and an ill-tempered
> Dragon, remember, you do not have to outrun the Dragon... 
> ...you just have to outrun the Halfling."
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
---end quoted text---

-- 
Joel Dinel
System Administrator
TouchTunes Digital Jukebox, Inc.
GnuPG key : http://darkhost.mine.nu:81/~joel/mykey.asc

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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