Skip to content

toybox

  • toybox’s cpio defaults to newc, and is as fast as bsdcpio
  • Do we need to run scripts/genconfig.sh before make?
  • scripts/genconfig.sh and tests depend on bash
  • find from findutils is about twice as fast as the one from toybox
  • toybox’s ip is unable to set interfaces up
  • musl recommends using getconf (and iconv?) from toybox
  • toybox’s sysctl —system vs -p
  • sysctl.d directory is better than sysctl.conf file as you’re just dropping files in there instead of editing a file in place
  • sysctl configuration: https://github.com/k4yt3x/sysctl

Replaces

  • coreutils
  • diffutils
  • findutils; toybox’s find is approximately two times slower
  • libarchive; only bsdcpio
  • patch; toybox’s patch already does --no-backup-if-mismatch by default
  • procps-ng; provide pidwait, tload and slabtop?
  • psmisc
  • sed

Does Not Replace

  • dhcp / sdhcp
  • file
  • grep / ugrep; toybox’s grep is at least 10 times slower
  • iproute2
  • iputils / fping
  • man-db / mandoc; bad implementation
  • more / less; bad implementation
  • pciutils
  • shadow
  • util-linux; bad implementations like swapon
  • vim / neatvi; bad implementation
  • wget; bad implementation

Additional binaries provided by coreutils

  1. b2sum
  2. basenc
  3. chcon
  4. csplit
  5. dir
  6. dircolors (provided by ls)
  7. join
  8. numfmt
  9. pathchk
  10. pinky
  11. pr
  12. ptx
  13. stdbuf
  14. sum
  15. tsort
  16. unexpand
  17. users (provided by shadow)
  18. vdir

Resources