coreutils VS util-linux

Compare coreutils vs util-linux 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
coreutils util-linux
112 35
4,024 2,481
2.7% 3.3%
9.3 9.9
5 days ago 2 days ago
C C
GNU General Public License v3.0 only 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.

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" :)

util-linux

Posts with mentions or reviews of util-linux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-06.
  • The First Stable Release of a Rust-Rewrite Sudo Implementation
    7 projects | news.ycombinator.com | 6 Nov 2023
    There are su and runuser in util-linux (GPL-2.0) [1].

    [1]: https://github.com/util-linux/util-linux/tree/master/login-u...

  • Simula the Forgotten Programming Language
    2 projects | news.ycombinator.com | 2 Jul 2023
    >It remained in the "getty" process for some time, well into the {Free,Net,Open}BSD era.

    Still there in agetty: https://github.com/util-linux/util-linux/blob/master/term-ut... And, I imagine in other getty implementations.

  • Don't abuse su for dropping user privileges (2015)
    3 projects | news.ycombinator.com | 26 May 2023
    TIOCSTI is irrelevant. When one is dropping privileges, in a system cron job or in a process supervised by one's favourite service management system, there is no terminal involved. TIOCSTI simply doesn't enter into the picture at all.

    Only when one is in a terminal login session and using su to elevate / add privileges, does TIOCSTI become relevant. But no-one here is saying not to use su to add privileges.

    People blame su, sudo, and (as the person at https://github.com/slicer69/doas/issues/110 did) doas for this feature of operating system kernels. The right thing to do with TIOCSTI it to just eliminate it from the kernel. OpenBSD did back in version 6.

    Sadly, the argument from Alan Cox, Linux developer, when this was proposed years ago was that it should stay in Linux, and all of the programs like su, sudo, and doas should have even more things to do in the parent process that sticks around, namely pump I/O to and from a controlling pseudo-terminal that su/sudo/doas sets up for the shell subprocess, breaking (as the maintainer of OpenDoas pointed out) the long-standing notion that the child processes belong to the same terminal session and share things like a single getlogname() with the login shell.

    6 years after https://www.openwall.com/lists/kernel-hardening/2017/05/10/3... and https://www.openwall.com/lists/oss-security/2017/06/03/9, there is no sign of anyone doing anything of the sort in any su or doas implementation. (It was briefly in one su implementation, but taken out in 2017 for being a "stupid hack": https://github.com/util-linux/util-linux/commit/23f75093264a...)

    Fortunately, some six months ago Linux developers finally made TIOCSTI removable and the right course of action is available to those that want it: https://lore.kernel.org/lkml/20221228205726.rfevry7ud6gmttg5...

  • Desktop Suddenly Failing to Boot - what are these error messages?
    2 projects | /r/linux4noobs | 26 May 2023
    Huh, I will try this later. Bit confused by the instructions on the Archwiki but I think I can figure it out. Thanks so much for the help. Btw, it seems you were right on what was wrong. Good eyes.
  • Capture your users attention with style
    4 projects | dev.to | 1 May 2023
    So, this script serves as a pretty good wall replacement (wall will strip all escape/control sequences other than \007, by the way).
  • How do you find the developers for obscure stuff
    2 projects | /r/linux | 21 Apr 2023
    The login program (used for terminal logins) is part of the util-linux project: https://en.wikipedia.org/wiki/Util-linux
  • hexdump nonsense error messages
    1 project | /r/linuxquestions | 24 Mar 2023
  • Would you use/try snaps if it has open source backend?
    6 projects | /r/linuxmasterrace | 12 Dec 2022
    if anbody actually at Canonical is reading this and wants me (and others) to take snaps seriously, please consider submitting pull requests to some of the core cli tool projects impacted by the way you guys abuse the loop device mechanism. Something simple like the ability to export HIDE_SNAP_MOUNTS=1 that gets picked up by the impacted tools in util-linux (lsblk, mount, blkid, fdisk, etc) and gnu coreutils (du, df) and simply hides the lines related to loop device mounts would go a long way - preferably only the ones added by snap but even an option to hide all of them would be better than nothing.
  • Best Way For Copying Between 2 PC's With Different UIDs via USB
    1 project | /r/linuxquestions | 26 Nov 2022
    Pick a different filesystem, or wait for this feature to land in util-linux.
  • Are DOS utilities open source.
    3 projects | /r/linuxquestions | 10 Nov 2022
    Also a data format. Reasonably easy to find a spec (the wikipedia article should be sufficient to implement it). Also reasonably easy to find Free Software implementations, such as fdisk.

What are some alternatives?

When comparing coreutils and util-linux you can also consider the following projects:

madaidans-insecurities

gimp - Read-only mirror of https://gitlab.gnome.org/GNOME/gimp

busybox - BusyBox mirror

bindfs - Mount a directory elsewhere with changed permissions.

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

sanitizers - AddressSanitizer, ThreadSanitizer, MemorySanitizer

linux - Linux kernel source tree

linuxgems - A succinct cheat sheet for newbie linux coders and system administrators, documenting some of the more obscure and useful gems of linux lore. Intended to be viewed in emacs org-mode, or VimOrganizer, though any text editor will suffice.

gnulib - upstream mirror

subsync - Subtitle Speech Synchronizer

coreutils - Cross-platform Rust rewrite of the GNU coreutils

lolcat - Rainbows and unicorns!