this post was submitted on 28 Sep 2023
315 points (97.0% liked)

Linux

48664 readers
483 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 5 years ago
MODERATORS
315
modern unix (github.com)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

foss

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 30 points 1 year ago (3 children)

Here’s a slightly better list. Call out to nushell and fish, my two modern shell favourites.

[–] [email protected] 7 points 1 year ago (2 children)

I just learned about nushell a few days ago and it blew me away. I've always wanted a shell that made manipulating data easier, and with my programming background the functional style just clicked instantly. Been daily driving it for a couple weeks, definitely recommend folks give it a go.

[–] starman 5 points 1 year ago* (last edited 1 year ago) (2 children)

I discovered nushell a week ago and it's my primary shell now too. I miss some completions tho

[–] [email protected] 3 points 1 year ago (1 children)

You can use carapace to get many of them

[–] starman 2 points 1 year ago

That's really nice, thanks. Can't wait to set it up on my machine.

[–] [email protected] 1 points 1 year ago

Yeah, same. For now I just drop into old reliable zsh when I need to l but I love nu so much I might go ahead and look into coming up with the stuff I miss myself.

[–] [email protected] 5 points 1 year ago (1 children)

It’s incredible, isn’t it? I’m already working on plugins for a variety of tasks so I can fire things off for malware analysis, push tables to data stores, and more. It’s such an obvious evolution of POSIX, I’m surprised it’s not already a standard across all shells.

[–] [email protected] 5 points 1 year ago

Yup, it legit changed how I think about interacting with a shell. I've always been kinda terrible at actually learning stuff like awk, sed and company on the long term without needing half a dozen Google searches before they mostly do what I want so actually being able to perform complex operations on whatever input on the fly feels incredible!
It helps so much with API development as well, I've been using it on a side project and having a built-in http client plus auto JSON parsing feels ergonomic in ways that just make me giddy lol.

[–] [email protected] 2 points 1 year ago (1 children)

Sometimes I do some one liners when in a shell, and neither of these are POSIX compliant. That's why I just stick to my customised zsh that basically does the same as fish.

[–] [email protected] 2 points 1 year ago (1 children)

You’re absolutely right. Fish isn’t really for scripting but is great for purely interactive use.

Nushell however offers a totally different approach to “scripting” and I can achieve far more in a nushell one-liner than I ever could in a POSIX shell as it’s far more comparable to Python Pandas than a shell.

For instance I can plot a line chart of file modifications over time directly in the shell with a single line of nushell. It’s mind blowing.

[–] [email protected] 3 points 1 year ago (1 children)

That's great. I'm glad you like it and it sounds pretty awesome. It adds more variety to the command line, which is a beautiful thing. However, I do too much with remote systems that I don't "own", however, so, POSIX, for me, is a hard requirement - adding another domain specific language that I can only sometimes use is not worth the cognitive load for me.

[–] [email protected] 3 points 1 year ago

That’s totally understandable. And I’ll admit, I’m still writing a fair few #!/bin/sh headed scripts as I to work on too POSIX systems. I think we’re a long long way off of the POSIX standard being superseded by something else.

[–] [email protected] 0 points 1 year ago (1 children)

Fish is overrated imo.
Nushell is better but not quite what I'm looking for.

[–] [email protected] 1 points 7 months ago

Fish is no longer overrated.