There are many resources online to learn how to train or correct bad pet behaviors. You can go to a website, or download an e-book. Another way is to hire a dog trainer to teach your pet commands.
These are Amazon affiliate links which I will earn something if you order.
I have linked up with :