this post was submitted on 23 Jan 2025
907 points (99.3% liked)
linuxmemes
24433 readers
366 users here now
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
3. Post Linux-related content
sudo
in Windows.4. No recent reposts
5. π¬π§ Language/ΡΠ·ΡΠΊ/Sprache
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.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 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
After over a decade of using it exclusively at home and partially at work I still googled how to add users to a group last week.
Well yeah. You barely use groups on a personal machine - maybe once and done for audio and VMs, depending on what distro you use - and at work you'd automate that shit, probably have it centralised.
I try to remember commands backwards by how they look( ), if they are short, have capital letters and so on... Is that weird? If I give up I open the history file or my good ol' cheat sheet.
(Tip: Most shells allow you to press Ctrl+R to interactively search through history, meaning you won't have to open a separate file.)
Oh. My. Word.
I thought I was clever by using
history | grep <bit of command I remember>
I KNEW there had to be a better way!
There's a lot of docs in e.g.
man bash
.Thank you, I already have it configured with fzf aswell, and another to search folders to jump to them.
You need https://starship.rs/
I did use it but the only real benefit for me as a hobbyist was the git status indicator on the prompt and the easy to configure prompt. The rest of the indicators did not help me since I'm not a developer. Now I just have my custom prompt with colors, and custom git info.
But it autocompletes pretty well, isnβt it? π€or was it fish doing that
I quite sure fish has it, but I use zsh without autocompletions, I just press tab until I find what I need. And the fzf history shortcuts for the rest.
Fish does history autocomplete, not Starship β you still have autocomplete using unconfigured Fish, and you don't get autocompletion by enabling Starship for other shells.
Was it "groupadd" or "addgroup"...? I can never remember xD
usermod -aG group user
mnemonic: user mod append groupgroupdel
,groupadd
userdel
,adduser
πI ask AI for that