With a lot of patience and... treats! If you want to teach your cat to stand on his back legs and sometimes walk on them, try using a treat as a sort of carrot to train them to move or stand on the hind legs.