One thing that hasn’t been mentioned yet - have a good backup solution. If there isn’t anything on your computer that can’t be restored, then you’re not going to feel as much pressure to protect things.
Of course there’s crypto miners, identity theft, botnet stuff, all sorts of things that run undetected and don’t simply render your computer unusable. But if you’re absolutely sure you’re not losing anything, then “nuke it from orbit” becomes a more paletteable solution for virus removal. A hassle for sure, but format and start over again becomes an option that results in no loss other than the pain of having to reinstall everything.
I just use vi
Is that stupid? It’s all I ever bothered to learn, hasn’t failed me yet. Now I’m not some big time linux guru but I’m a sysadmin and regularly find myself elbow deep in a CLI for stuff.