Sizes of /bin/true

OSReleaseArchDateSize (bytes)
Cyclades (Linux)?PowerPCJul 11 20027(2)
NetBSD1.5.2PowerPCJul 11 200218(1)
NetBSD1.5.3AlphaSep 9 200218(1)
HP-UXB.10.20 DPA-RISCJul 11 200237(1)
HP-UXB.11.00 APA-RISCJul 11 200237(1)
Minix2.0.0i386Jul 20 200262(1)
OpenBSD3.1i386Jul 11 200279(1)
SunOS5.5Sparc64Jul 11 2002304(1)
SunOS5.6Sparc64Jul 11 2002304(1)
SunOS5.7Sparc64Jul 11 2002304(1)
SunOS5.8Sparc64Jul 11 2002304(1)
SunOS5.8Sparc32Jul 11 2002304(1)
SunOS5.8i386Sep 28 2002304(1)
Irix6.5.5fMIPS64Unknown312(1)
Irix6.4MIPS64Jul 11 2002318(1)
SuSE6.0i386Jul 11 2002395(1)
Slackware7.0i386Jul 11 2002395(1)
FreeBSD4.1-RELEASEi386Jul 12 20022690
FreeBSD4.2-RELEASEi386Jul 12 20022934
FreeBSD4.6-RELEASEi386Jul 11 20022976
Debian2.2i386Jul 11 20024416
Slackware8.1i386Jul 11 20024720
Mandrake8.1i386Jul 11 20024736
Slackware8.0i386Jul 11 20024740
SuSE8.0i386Jul 11 20024860
Redhat6.1i386Jul 11 20024980
Slackware7.1i386Jul 11 20024948
Debian3.0m68kUnknown8896
Debian3.0i386Unknown8956
Debiansidi386Mar 6 20038984
MacOS X5.5PowerPCJul 11 20029072
Redhat7.2i386Jul 11 20029468
Debian3.0i386Jul 11 20029704
Debian2.2Sparc64Jul 12 20029772
Gentoo?i386Sep 11 20029852
Debian3.0PA-RISCJul 11 200211224
Cygwin1.3.12i386Jul 11 200213312
Debian3.0Sparc32Jul 11 200214696
Debian3.0AlphaJul 11 200214824

?: Unknown filetype.
1: Shellscript
2: Symbolic link

The smallest shellscript I was able to produce was 9 bytes (#!/bin/sh).
The smallest possible stand-alone executable (though violating the ELF standard) is said to be 45 bytes on Linux.

See also: A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux by Brian Raiter.


[Main | Sizes |  Source code | Links]