virtualmin help doesn't work

I installed virtualmin on my server. It works fine at frond-end, but when I ssh and type virtualmin help, we get the message
-bash: virtualmin: command not found

Please tell me where is a possible problem?

Howdy,

It sounds like /usr/sbin may not be in your path.

Try typing out the full path to the command, I suspect that will do the trick:

/usr/sbin/virtualmin

If you’re logging into a non-root account (which I assume to be the case, since every distro I know of includes /usr/sbin in the path for root), you’ll also need to use sudo. The virtualmin command currently requires root to operate.