To bring up the help, just type samtools
As you can see, there are multiple “subcommands” and for samtools to work, you must tell it which subcommand you want to use.
Examples: