this post was submitted on 15 Sep 2025
330 points (98.0% liked)

Linux

58196 readers
830 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
 

I've been trying nushell and words fail me. It's like it was made for actual humans to use! 🤯 🤯 🤯

It even repeats the column headers at the end of the table if the output takes more than your screen...

Trying to think of how to do the same thing with awk/grep/sort/whatever is giving me a headache. Actually just thinking about awk is giving me a headache. I think I might be allergic.

I'm really curious, what's your favorite shell? Have you tried other shells than your distro's default one? Are you an awk wizard or do you run away very fast whenever it's mentioned?

(page 2) 41 comments
sorted by: hot top controversial new old
[–] calliope@retrolemmy.com 9 points 1 day ago* (last edited 1 day ago) (1 children)

I use zsh, mainly because I’ve been using it for a really long time and it felt like an upgraded bash.

I also have used fish a tiny amount and like the idea but zsh just works for my purposes and I already know how it works.

nushell looks really cool though!

I don’t have much occasion to use awk any more but it can be really useful!

[–] phantomwise@lemmy.ml 4 points 1 day ago (1 children)

I've also been using zsh until now, it's clear it's a massive improvement over bash. No more accidentally pasting code into the terminal!

I wasn't even looking for a new interactive shell, zsh is fine, I was looking for a new language for shell scripts because I'm tired of bash's legacy quirks... but the interactive nushell was too cool to resist!

[–] calliope@retrolemmy.com 2 points 1 day ago

nushell seriously looks amazing for working with data. I gotta remember it exists the next time I’m doing stuff like this.

It seems like a nice shell to have around and usable for cases like this regardless!

[–] bastion@feddit.nl 3 points 1 day ago

thanks, good thread.

[–] ArseAssassin@sopuli.xyz 7 points 1 day ago

Love nushell. It's just about the most practical functional programming language I've ever had the pleasure of using.

I'm using fish as my default shell since it's more standards-compliant and plays nicer with tools that modify your environment. But any time I need to do more complicated shell scripting, I'm breaking out nushell.

[–] MonkderVierte@lemmy.zip 7 points 1 day ago (3 children)
[–] phantomwise@lemmy.ml 2 points 1 day ago (1 children)

I feel my sanity slowly slipping away while reading...

[–] MonkderVierte@lemmy.zip 3 points 1 day ago (2 children)

Yeah, why are linebreaks & co. in names even allowed on file system level? There's not even something like a restricted mode mount option for most fs.

[–] thetaT@hexbear.net 2 points 1 day ago

because why not? it's just characters and any UTF8 string is allowed as a filename so long as it doesn't contain a null byte. people's usecases are different, and you really shouldn't be parsing ls output in the first place

[–] Oinks@lemmy.blahaj.zone 2 points 1 day ago* (last edited 1 day ago) (1 children)

There's an argument to be made that system software like filesystems and kernels shouldn't get too smart about validating or transforming strings, because once you start caring about a strings meaning, you can no longer treat it as just a byte sequence and instead need to worry about all the complexities of Unicode code points. "Is this character printable" seems like a simple question but it really isn't.

Now if I were to develop a filesystem from scratch, would I go for the 80% solution of just banning the ASCII newline specifically? Honestly yes, I don't see a downside. But regardless of how much effort is put into it, there will always be edge cases – either filenames that break stuff, or filenames that aren't allowed even though they should be.

[–] MonkderVierte@lemmy.zip 3 points 1 day ago* (last edited 1 day ago)

Oh right, filesystem is initialized before charset & stuff. My bad.

load more comments (2 replies)
[–] KSPAtlas@sopuli.xyz 2 points 1 day ago

I've used nushell for several months, and it really is an amazing shell

It feels more like an actual language than arcane runes, and I can easily makes chains and pipelines and things that would be difficult in bash

Additionally, it makes a pretty good scripting language

[–] black_flag@lemmy.dbzer0.com 2 points 1 day ago (1 children)

Nushell is great, I should use it again. Gave up on it after I wrote a thing for converting fish completions to their autocomplete system for it and their internal autocomplete didn't perform anywhere nearly adequately.

[–] Overspark@piefed.social 3 points 1 day ago (1 children)

Check out carapace. It takes a bit of setup but basically tries to make all the completions work in almost any shell. For me that solved the big step backwards from fish's completions that nu's native completions have.

[–] black_flag@lemmy.dbzer0.com 2 points 1 day ago

Yeah, that's what I'll do when I get around to checking it out again.

load more comments
view more: ‹ prev next ›