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(<command> <flags> <arguments>), 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.
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(<command> <flags> <arguments>), 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!
Was it “groupadd” or “addgroup”…? I can never remember xD
usermod -aG group user
mnemonic: user mod append groupgroupdel
,groupadd
userdel
,adduser