I think everyone else already told you this, but never tell your employer anything about your medical history or health unless you need an accomodation or time off. There is literally no benefit to doing this. Especially when it’s something highly stigmatized, like NPD.
If they ask during a job interview, you need to be ready to lie.
If you want to get better at Linux terminal and standard unix commands I would try https://overthewire.org/wargames/bandit/
It’s an interactive tutorial which will help build basic skills. There are a million guides and walkthroughs for this, but I would try each level on your own first before you look at a guide.