this post was submitted on 29 Jan 2026
22 points (95.8% liked)

Linux

61673 readers
622 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

Recently I got really interested in debloating and hardening my operating systems, cause I'm heavily inspired by Unix and "worse is better" philosophy. As I heard bash is heavy and we have much more lightweight and faster alternatives like these mentioned in title. They must be great alternative for scripting and interpreting but is there any reason to use them on my machines as interactive shell? Anyone are using them? Also is it worth to learn them as bash is standard IT industry?

you are viewing a single comment's thread
view the rest of the comments
[–] bacon_pdp@lemmy.world 14 points 1 day ago (3 children)

Bash is 10-16KB of ram, dash is 3-5KB of ram. Does it really matter at that point?

[–] priapus@piefed.social 1 points 11 hours ago

Dash's more significant feature is its speed. It's not meant to be used in place of bash at all, its meant to be symlinked in place of sh to give you a faster and smaller shell with a simpler and more auditable codebase.

[–] blackbrook@mander.xyz 6 points 1 day ago (1 children)

The question is what does OP mean by 'heavy'and what benefit do they hope to get from a 'lighter' shell. Memory or performance seems inconsequential in this case, but how about attack surface? Is there some benefit from a security standpoint of running a simpler shell?

[–] mlody@lemmy.world 2 points 1 day ago (1 children)

RAM doesn't matter for me. Smaller code base is reducing attack surface for sure.

[–] iByteABit@lemmy.ml 1 points 15 hours ago

I don't think anyone is gonna hack you because of bash being a larger codebase

If I absolutely had to pick one as insecure, it would be anything other than bash since it has been around for so long, has its code read by so many people, that there's no way that a major hole exists in it

Overall though I don't think security or performance is a good metric for you to pick something as simple as a shell, just pick the one that gives you the best experience and features. Being compatible with bash is a big plus because it's the industry standard, like zsh for example

[–] confusedpuppy@lemmy.dbzer0.com 4 points 1 day ago (1 children)

I could imagine an it would matter more to people working with embedded devices.

Also some people just like learning or doing random things. Nothing wrong with some exploration, discovery or learning.

[–] mlody@lemmy.world 3 points 1 day ago

That's why I'm asking that question :) A lot of discussions are on Reddit and I hate Reddit so to avoid using it I'm asking here.