what is the right way to shutdown ubuntu using the command line?

view story

http://askubuntu.com – I know that there are several commands that shutdown an Ubuntu computer. I was just wondering if there is a right one to use and what the implications are for using the other ones; or what the various scenarios are for using each of the available commands and their parameters. (HowTos)