When I installed freeBSD for the first time, I was so confused when !! didn't work.
linuxmemes
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
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
sudoin 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 figures
We 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.

friend brought me some seashells

Where's tcsh?
i am using ZSH cause Fish is not POSIX compliant,which made it annoying to run scripts without rewriting them.
#!/bin/sh
Hope this helps
how about if its not in a sh file,its common for scripts to use sh or bash instead.
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.
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.
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.]
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.
You can always just continue using bash scripting, with a bash shebang in your scripts, if you miss it
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.
The Web site for fish reads:
Finally, a command line shell for the 90s
I love them and always will.
I think I'm using fish and it works great, I love alt+s thing and auto complete thingy.
TIL the alt+s thing
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.
All we ask of you is that you don't reheat it in the employee break room microwave.

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

Powershell is probably simultaneously the best and worst thing Microsoft has ever created
Second best. The best was Active Directory.