LWN.net Logo

Advertisement

Front, Kernel, Security, Distributions, Development. See your byline here on LWN.net.

Advertise here

FWIW size of ed and cat on Slackware 12.1

FWIW size of ed and cat on Slackware 12.1

Posted Aug 27, 2008 5:26 UTC (Wed) by pr1268 (subscriber, #24648)
In reply to: My cat is not bigger than my ed by nix
Parent article: 21 of the Best Free Linux Text Editors (LinuxLinks)

me@mybox:~$ size $(which ed) text data bss dec hex filename 33862 1696 604 36162 8d42 /usr/bin/ed me@mybox:~$ size $(which cat) text data bss dec hex filename 15230 460 356 16046 3eae /usr/bin/cat

Granted, size(1) will read through symlinks, and cat(1) in /usr/bin is symlinked to /bin/cat in Slackware 12.1.


(Log in to post comments)

FWIW size of ed and cat on Slackware 12.1

Posted Aug 27, 2008 7:21 UTC (Wed) by nix (subscriber, #2304) [Link]

nix@loki 32 /home/nix% size $(which ed)
text data bss dec hex filename
39263 1696 604 41563 a25b /usr/bin/ed
nix@loki 33 /home/nix% size $(which cat)
text data bss dec hex filename
44371 1984 0 46355 b513 /usr/bin/cat
nix@loki 34 /home/nix% cat --version
cat (GNU coreutils) 6.12
[...]

I still have a little game of hunt-the-fat-cat to play.

(size -A, a GNU extension, gives a much more detailed breakdown.)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds