bash VS linux

Compare bash vs linux and see what are their differences.

bash

Unofficial mirror of bash repository. Updated daily. (by bminor)

linux

Linux kernel source tree (by torvalds)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
bash linux
9 983
583 170,949
2.2% -
5.8 10.0
8 days ago 3 days ago
C C
GNU General Public License v3.0 only GNU General Public License v3.0 or later
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.

bash

Posts with mentions or reviews of bash. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-18.
  • Node.js 20 is now available
    13 projects | news.ycombinator.com | 18 Apr 2023
    > Next you'll be telling me that I shouldn't use Bash because Bash 5.0 came out in 2018 and only got two minor point releases over the next 5 years. But that sounds dumb, huh?

    What's dumb is not being able to tell the difference. It's not about the numbers.

    https://git.savannah.gnu.org/cgit/bash.git/ shows there are constant updates. Things are being worked on. Your example proves my whole point. There are updates every year for many years.

    Express? Not so. There are many gaps in its history. And for a tool like Express that has way more surface area it is in need of a lot more testing and updating e.g. if NodeJs changes something it breaks.

    Does Bash need to make sure it works with HTTP3, Brotli or many other things that came out? No.

    > Because for the most part - it doesn't need them.

    Right, let's go back to the Stone Age. You don't need clothes either - just a leaf. You're just so dismissive on innovation then why bother? You don't even need NodeJs. Back to assembly and punch cards...

    > Is an ignorant take.

    Yes, yours. As shown above by your example.

    > People promote it because it's a good tool.

    And how do you know that? Where are the stats? Or people just google for NodeJs server, see the top response being Express and just do that. The cycle then repeats. Have people promoting it actually benchmarked, compared and investigated all the tools before making this informed decision? I'm sure you've heard from each and everyone 1 of them to know the answer eh.

  • Why is the bash package outdated?
    2 projects | /r/archlinux | 4 Apr 2023
    If anyone else is wondering (but it's probably just me), "compatibility level 50" doesn't mean that Bash has a complicated feature-detection algorithm that places compatibility on a scale from 0 to 100%. "Level 50" just means compatibility with bash 5.0.
  • Can someone help me understand this code?
    2 projects | /r/bash | 27 Aug 2022
    The bash shell also has code in it to check for this same magic number. This is because bash is also available on systems where the kernel doesn't do #! processing, but people would still want their scripts to behave in a predictable manner. You can see this in execute_cmd.c from the current bash source code.
  • Why does foreground job ignore job control signals when Bash is running as pid 1?
    2 projects | /r/linuxquestions | 10 Jun 2022
    Well, have you looked at the bash source? The error message is around line 4481 in this file: https://github.com/bminor/bash/blob/master/jobs.c
  • locate-exit: make your script say which line and why it finished execution
    2 projects | /r/bash | 27 Jul 2021
    Was it some ancient bug? I cant seem to find a mention of it in bash changelog
  • How are bash shell's functions like `history` are set up and executed?
    1 project | /r/AskProgramming | 21 Jul 2021
    Here is Bash's source code.
  • Suicide Linux
    4 projects | /r/linuxmasterrace | 2 May 2021
    After I made the comment I actually decided to look up BASHs source code and here appears to be the part that handles errors if the filename is to be believed https://github.com/bminor/bash/blob/master/error.c
  • How do CP and MV work?
    2 projects | /r/Ubuntu | 8 Feb 2021
    I present you a middle case: here's the source code for Gnu bash's cp command.
  • I finally figured out C++ and I like it
    1 project | /r/ProgrammerHumor | 7 Jan 2021

linux

Posts with mentions or reviews of linux. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-30.
  • Doyensec – OOB memory read in Linux kernel
    1 project | news.ycombinator.com | 7 May 2024
  • Memory is cheap, new structs are a pain
    1 project | news.ycombinator.com | 5 May 2024
  • The File Filesystem
    8 projects | news.ycombinator.com | 30 Apr 2024
    FFS predates FreeBSD and is in some capacity supported by all 3 major BSDs. I'm fairly confident that Linux actually supports it through the ufs driver ( https://github.com/torvalds/linux/tree/master/fs/ufs ); whether the use of different names in different places makes it better or worse is an exercise for the reader.
  • Linus Torvalds adds arbitrary tabs to kernel code
    3 projects | news.ycombinator.com | 17 Apr 2024
    These are a bit easier to see what's going on:

    https://github.com/torvalds/linux/commit/d5cf50dafc9dd5faa1e...

    https://github.com/torvalds/linux/blob/d5cf50dafc9dd5faa1e61...

    Unfortunately Github doesn't have a way to render symbols for whitespace, but you can tell by selecting the spaces that the previous version had leading tabs. Linus changed it so that the tokens `default` and the number e.g. `12` are also separated by a tab. This is tricky, because the token "default" is seven characters, it will always give this added tab a width of 1 char which makes it always layout the same as if it were a space no matter if you use tab widths of 1, 2, 4, or 8.

  • Show HN: Running TempleOS in user space without virtualization
    3 projects | news.ycombinator.com | 11 Apr 2024
  • PfSense Software Embraces Change: A Strategic Migration to the Linux Kernel
    1 project | news.ycombinator.com | 4 Apr 2024
    There was also a Gentoo effort to run atop FreeBSD[0]. The challenge of course is that afaik none of the BSD kernel ABIs are considered stable. The stable interface is the BSD libc. That said, with binfmt_misc, I don't see a reason you couldn't just run (at least some) FreeBSD binaries on Linux with a thin syscall translation layer (rather something like qemu-system) and then your layer hooked via binfmt_misc. I'm not aware of anyone who has done this for FreeBSD, but prior efforts existed as alternate binfmts for SysVr4/5 ELF binaries[2]. Either way would take some elbow grease, but you *might* even be able just reuse binfmt_elf and just have a new interpreter for FreeBSD elf.

    [0] https://wiki.gentoo.org/wiki/Gentoo_FreeBSD

    [1] https://docs.kernel.org/admin-guide/binfmt-misc.html

    [2] https://github.com/torvalds/linux/blob/master/fs/binfmt_elf....

  • Improvements to static analysis in GCC 14
    1 project | news.ycombinator.com | 3 Apr 2024
    > The original less-than check was deemed incorrect

    It was only deemed incorrect because of an information leak. Not because it's a valid use-case for user space to copy smaller portions of *hwrpb into user space. https://github.com/torvalds/linux/commit/21c5977a836e399fc71...

  • Linus Torvalds accepts a merge commit to the Linux kernel
    2 projects | news.ycombinator.com | 1 Apr 2024
  • TinyMCE (also) moving from MIT to GPL
    3 projects | news.ycombinator.com | 27 Mar 2024
    Correct. And the combined work needs to carry the MIT license text and copyright attributions for the MIT software authors. With binary distribution it must also be overt, not hidden in some source code drop, but directly accompanying the binary.

    Many people who talk about relicensing never credit the MIT developers or distribute the MIT license text. "Because it's GPL now."

    I don't think that you believe that, but many developers do.

    Some don't see the need for source code scans for Open Source compliance, because the license.txt says GPL, so it's GPL. Prime example is the Linux kernel. There is code under different licenses in there, but people don't even read https://github.com/torvalds/linux/blob/master/COPYING till the end ("In addition, other licenses may also apply.") and conclude it's simply GPL 2 and nothing else.

    Also be aware that sublicensing is not the same as relicensing.

  • Linus Torvalds is looking for a more modern GUI editor
    1 project | news.ycombinator.com | 28 Feb 2024
    > Does he have something against it?

    He notoriously hates GNU Emacs, yes.

    https://marc.info/?m=122955159617722

    https://github.com/torvalds/linux/blob/master/Documentation/...

What are some alternatives?

When comparing bash and linux you can also consider the following projects:

ngs - Next Generation Shell (NGS)

zen-kernel - Zen Patched Kernel Sources

thefuck - Magnificent app which corrects your previous console command.

DS4Windows - Like those other ds4tools, but sexier

phero - Full-stack type-safety with pure TypeScript

winapps - Run Windows apps such as Microsoft Office/Adobe in Linux (Ubuntu/Fedora) and GNOME/KDE as if they were a part of the native OS, including Nautilus integration.

coreutils - upstream mirror

Open and cheap DIY IP-KVM based on Raspberry Pi - Open and inexpensive DIY IP-KVM based on Raspberry Pi

shell-safe-rm - 😎 Safe-rm: A drop-in and much safer replacement of bash rm with nearly full functionalities and options of the rm command! Safe-rm will act exactly the same as the original rm command.

serenity - The Serenity Operating System 🐞

server - :desktop_computer: Simple and powerful server for Node.js

DsHidMini - Virtual HID Mini-user-mode-driver for Sony DualShock 3 Controllers