Problem scenario
You want to install the inspec gem. What do you do?
Solution
Run this:gem install inspec
(Taken from https://mitre-inspec-developer.netlify.app/installation/linuxinstall.html )
Does the inspec-bin command work? This may be a newer version that is already installed.
If you installed Ruby with root, which is not recommended according to https://stackoverflow.com/questions/24706277/error-sudo-gem-command-not-found, you may need to use "sudo" before the gem command. Ideally you would not use "sudo" before a gem command (according to the above external link).