this post was submitted on 23 Jul 2026
345 points (95.8% liked)

linuxmemes

32192 readers
973 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 3 years ago
    MODERATORS
     
    top 50 comments
    sorted by: hot top controversial new old
    [–] xxxb@feddit.org 1 points 1 hour ago

    When I installed freeBSD for the first time, I was so confused when !! didn't work.

    [–] jxk@sh.itjust.works 6 points 6 hours ago
    [–] m3t00@lemmy.world 2 points 6 hours ago

    friend brought me some seashells

    [–] Peck@lemmy.world 2 points 8 hours ago

    Where's tcsh?

    [–] Mwa@thelemmy.club 11 points 13 hours ago* (last edited 13 hours ago) (1 children)

    i am using ZSH cause Fish is not POSIX compliant,which made it annoying to run scripts without rewriting them.

    [–] Hawke@lemmy.world 9 points 11 hours ago (1 children)
    [–] Mwa@thelemmy.club 1 points 11 hours ago* (last edited 11 hours ago) (2 children)

    how about if its not in a sh file,its common for scripts to use sh or bash instead.

    [–] Hawke@lemmy.world 4 points 10 hours ago

    Linux doesn’t generally use extensions to decide what shell to use, so it doesn’t matter if it’s an sh file or not.

    If it uses bash of course you can substitute #!/bin/bash

    And of course you can use whatever shell you want, just saying that POSIX-compliance is not really relevant since the script can specify what shell it needs.

    [–] trevor@lemmy.blahaj.zone 3 points 10 hours ago

    The file extension doesn't matter much on Linux. If you've got a shebang at the top, the shell you're running from will invoke the correct shell according to the shebang.

    In some situations, you may want to use something like bash <your-script>, but that would only be when you've got a script that doesn't have a shebang, but not having one is bad practice and you really should be using them. Fish isn't the only non-POSIX shell you're going to encounter on a Linux system. Python, Perl, and probably some others will be there, and using a shebang ensures no shenanigans. So whether or not you use Fish, you should always use shebangs.

    [–] Digit@lemmy.wtf 4 points 13 hours ago

    Heh. Good stuff.

    More! ;D I want to see all the shells, characterised so.

    ... Fish [over[1]]user here. Ooh, good burn. LOL.

    [1: Not just user. Overuser. I do most of my scripting in fish. Think that's not overuse yet? ... I even wrote my own text editor in fish.]

    [–] inzen@lemmy.world 9 points 15 hours ago (1 children)

    I use fish because it was the default in cachyos and decided to give it a fair shake. I like the built in syntax highlighting and fancy autocomplete but I miss bash scripting and built in commands that replace standard commands can be weird sometimes. I have not tried scripting fish, to lazy to learn yet another scripting language, especially if bash is the (almost) de-facto standard.

    [–] aBundleOfFerrets@sh.itjust.works 8 points 14 hours ago (1 children)

    You can always just continue using bash scripting, with a bash shebang in your scripts, if you miss it

    [–] Gumus@lemmy.dbzer0.com 3 points 13 hours ago

    That's what I do. Fish is great as interactive shell, scripts don't benefit that much from it and I can use what's familiar.

    [–] nothingcorporate@lemmy.today 34 points 20 hours ago* (last edited 20 hours ago)

    The Web site for fish reads:

    Finally, a command line shell for the 90s

    I love them and always will.

    [–] Obnomus@lemmy.ml 9 points 18 hours ago (2 children)

    I think I'm using fish and it works great, I love alt+s thing and auto complete thingy.

    [–] qwioeue@lemmy.world 6 points 17 hours ago (2 children)
    load more comments (1 replies)
    [–] wuphysics87@lemmy.ml 12 points 19 hours ago (1 children)

    I can't begin to say how superior my fish rice is to any alternative. So I won't. And I'll leave yall to flame me for implying it.

    [–] topherclay@lemmy.world 14 points 18 hours ago

    All we ask of you is that you don't reheat it in the employee break room microwave.

    [–] abbadon420@sh.itjust.works 98 points 1 day ago (10 children)
    [–] whoisearth@lemmy.ca 1 points 9 hours ago

    Unironically though. It takes time because it's structurally different than python but it's fun when you figure it out

    [–] apftwb@lemmy.world 38 points 22 hours ago

    Get-OutOfHere

    [–] germanatlas@lemmy.blahaj.zone 52 points 1 day ago (2 children)

    Powershell is probably simultaneously the best and worst thing Microsoft has ever created

    [–] Hawke@lemmy.world 2 points 10 hours ago

    Second best. The best was Active Directory.

    load more comments (1 replies)
    load more comments (6 replies)
    load more comments
    view more: next β€Ί