busybox VS coreutils

Compare busybox vs coreutils and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
busybox coreutils
9 112
1,526 4,024
2.4% 2.4%
1.7 9.3
4 months ago 3 days ago
C C
GNU General Public License v3.0 or later GNU General Public License v3.0 only
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

busybox

Posts with mentions or reviews of busybox. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-28.
  • Ash: A Gentle Primer
    1 project | news.ycombinator.com | 7 Oct 2023
    Also known as Dash in Debian (it's satandard POSIX shell) and sh in Busybox that sadly tainted the original BSD source file with GPL2.

    https://github.com/mirror/busybox/blob/master/shell/ash.c

  • Everything I wish I knew when learning C
    2 projects | news.ycombinator.com | 28 Nov 2022
    More Good projects to learn from:

      - Busybox (https://github.com/mirror/busybox)
  • what are some tiny c programs I can play about with?
    3 projects | /r/cprogramming | 8 Nov 2022
    Also, it's barebones POSIX, and not the Linux extensions you commonly think of. But, that means the processes are a lot simpler, and the code is often less complex. So it's a good place for a beginner to dip into to see how .e.g mv works, compared to GNU mv.
  • Looking for a simpler version of BusyBox for educational purposes
    4 projects | /r/linux_programming | 3 Nov 2022
    Sure... There are symlinks in the installation, and there's a small main() function that dispatches execution to the appropriate function based on argv[0], but that doesn't significantly impact the C implementation of each individual tool. Those seem pretty straightforward, to me. A developer reading.. e.g. chmod.c isn't going to see any evidence of symlinks, and minimal impact from the external main() function.
  • Any good resources on making a C implementation of the Unix ls command?
    5 projects | /r/C_Programming | 1 Nov 2022
    BusyBox: https://github.com/mirror/busybox/blob/master/coreutils/ls.c
  • /* Act like "true" by default; false.c overrides this. */
    3 projects | /r/programmingcirclejerk | 21 Oct 2022
    true false
  • ISC DHCP Server has reached EOL
    3 projects | news.ycombinator.com | 10 Oct 2022
    Ok here is my followup. I didn't go into detail about kea hooks [0] because I didn't write any kea hook before, but from what I can tell it should cover all your needs. You have to write c code which I find absurd tbh, but if it has the functionality you are looking for it could be a solution.

    I already posted my dnsmasq "solution" so I will skip this. If you want a code example I could whip you one up.

    Then there is coredhcp [1] and you can write plugins written in go for it.

    From time to time some hobby dhcp server pop up, but most fade away since (I guess) the existing solutions are "good enough". I for instance implement a automatic provisioning and configurating dhcp setup with tftp and pxe boot using dnsmasq. It automatically creates pxe configs based on the mac address and some other stuff (tm). Kea seemed overkill for this usecase and I'm quite happy with what I got.

    Your use case of automatically fixing hostnames through ISC seems a bit overkill to me as well to be frank. My home network has a few VLANs and every device in it is managed manually. It's a one time setup and most automation is unnecessary (and some devices in my network flatout ignore some dhcp options....). Aaaaanyway I still think that most dhcp servers out there support some form of scripting (heck even udhcpcd has a lease notify script that could be hacked to offer some of that functionality even though this gets only executed after the fact so a bit useless [2]).

    > oh wait, I wonder how much ISC was paid … to do exactly this EOL … by these major ISPs?

    I don't know. Nothing?

    > Plausible future: I can envision a special DHCP vendor-specific OPTION to use time-based blockchain hash to further solidify their hold.

    Reading your cynic banter I'm quite happy of not having your DHCP problems. Looking through your github repositories I can find a bunch of configuration files for dhclient, but not much in form of ISC configs (only the nintendo fix you posted in your first post). Would be really interested in your setup.

    [0] https://kea.readthedocs.io/en/latest/arm/hooks.html

    [1] https://github.com/coredhcp/coredhcp

    [2] https://github.com/mirror/busybox/blob/master/examples/udhcp...

  • A Little Story About the `Yes` Unix Command
    6 projects | news.ycombinator.com | 21 Jul 2022
  • How good is a router without a hardware clock as a NTP server?
    1 project | /r/openwrt | 6 May 2021
    https://github.com/mirror/busybox/blob/121b02d6b6c9f276e7f8da560e5996d3e389cd63/networking/ntpd.c#L175

coreutils

Posts with mentions or reviews of coreutils. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-13.
  • GNU Coreutils 9.5 Can Yield 10~20% Throughput Boost For cp, mv and cat Commands
    1 project | news.ycombinator.com | 28 Mar 2024
    https://github.com/coreutils/coreutils/commit/fcfba90d0d27a1...

    A summary of other changes just released in GNU coreutils 9.5 are:

    * mv accepts --exchange to swap files

  • How the GNU coreutils are tested
    1 project | news.ycombinator.com | 21 Feb 2024
    > some are simple like yes(1)

    Not that simple: https://github.com/coreutils/coreutils/blob/master/src/yes.c

  • Show HN: Usr/bin/env Docker run
    4 projects | news.ycombinator.com | 13 Jan 2024
    The -S / --split-string option[1] of /usr/bin/env is a relatively recent addition to GNU Coreutils. It's available starting from GNU Coreutils 8.30[2], released on 2018-07-01.

    Beware of portability: it relies on a non-standard behavior from some operating systems. It only works for OS's that treat all the text after the first space as argument(s) to the shebanged executable; rather than just treating the whole string as an executable path (that can happen to contain spaces).

    Fortunately this non-standard behavior is more the norm than the exception: it works at least on modern GNU/Linux, BSDs, and macOS.

    [1] https://www.gnu.org/software/coreutils/manual/html_node/env-...

    [2] https://github.com/coreutils/coreutils/blob/b09dc6306e7affaf...

  • From Nand to Tetris: Building a Modern Computer from First Principles
    6 projects | news.ycombinator.com | 22 Dec 2023
    > building a cat from scratch

    > That would be an interesting project.

    Here is the source code of the OpenBSD implementation of cat:

    > https://github.com/openbsd/src/blob/master/bin/cat/cat.c

    and here of the GNU coreutils implementation:

    > https://github.com/coreutils/coreutils/blob/master/src/cat.c

    Thus: I don't think building a cat from scratch or creating a tutorial about that topic is particularly hard (even though the HN audience would likely be interested in it). :-)

  • The Linux Scheduler: A Decade of Wasted Cores (2016) [pdf]
    3 projects | news.ycombinator.com | 13 Dec 2023
    the yes command, writing to /dev/null, is making IO calls, which interfere with predictable scheduling.

    If you look at the source code for yes, https://github.com/coreutils/coreutils/blob/master/src/yes.c

    it builds a buffer of output and then writes that in a for loop

      while (full_write (STDOUT_FILENO, buf, bufused) == bufused)
  • nohup not working?
    1 project | /r/bash | 7 Dec 2023
    Looking at the source of nohup, if the execvp() of the child happens then it _must_ have already done the signal (SIGHUP, SIG_IGN) so - WTF?
  • Is it fair to say "ls" is dead? No commits in 15 years
    1 project | news.ycombinator.com | 10 Oct 2023
    This got me wondering so I went and looked and it seems like lo and behold there was actually a commit to the GNU ls source just 2 weeks ago.

    https://github.com/coreutils/coreutils/blob/master/src/ls.c

    "maint: prefer char32_t to wchar_t"

  • The Tao of Programming
    1 project | news.ycombinator.com | 28 Sep 2023
  • Decoded: GNU Coreutils
    5 projects | news.ycombinator.com | 8 Sep 2023
    even an empty file? Yes. so now it was a file with a copyright disclaimer and nothing else. And the koan-like question comes to mind is "Can you copyright nothing?" well AT&T sure tried.

    Then somebody said our programs should be well defined and not depend on a fluke of unix, which at this point was probable a good idea. so it became "exit 0"

    Then somebody said we should write our system utilities in C instead of shell so it runs faster. openbsd still has a good example of how this would look.

    http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr....

    At some point gnu bureaucracy got involved and said all programs must support the '-h' flag. so that got added, then they said all programs must support locale so that got added. now days gnu true is an astonishing 80 lines long.

    https://github.com/coreutils/coreutils/blob/master/src/true....

    http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html

  • Exa Is Deprecated
    9 projects | news.ycombinator.com | 7 Sep 2023
    > Yes, ls is maintained. Although, maintained is a very strong word. It exists.

    Why would it be a strong word? Here it is, in src/ls.c: https://github.com/coreutils/coreutils

    It is then packaged by tens of operating system distributions, who themselves maintain extra patchsets, some of which are then upstreamed.

    It is installed and used on millions (billions?) of devices, for 3 decades.

    It's a very reliable and trusty "sharp stick of metal" :)

What are some alternatives?

When comparing busybox and coreutils you can also consider the following projects:

u-boot - "Das U-Boot" Source Tree

util-linux

hush - Hush is a unix shell based on the Lua programming language

madaidans-insecurities

barebox - The barebox bootloader - Mirror of ssh://[email protected]/barebox

src - Read-only git conversion of OpenBSD's official CVS src repository. Pull requests not accepted - send diffs to the tech@ mailing list.

gcc

linux - Linux kernel source tree

lash - A modern, robust glue language

gnulib - upstream mirror

freebsd-src - The FreeBSD src tree publish-only repository. Experimenting with 'simple' pull requests....

coreutils - Cross-platform Rust rewrite of the GNU coreutils