How do I run the bitcoin bx tool in my terminal
bx is found here: libbitcoin-explorer. There are copious notes there about how to install.

Can I also recommend noting btcdeb for assisting in debugging bitcoin script, should you get that deep.