Both are fine, they're just the shortcuts that the system uses to shut down your PC. Just do what the first link did if you want to shut down your PC quickly instead of going to Start > Turn off Computer > Shutdown. Not sure why anyone would be in such a rush that they can't take the extra half a second to open the start menu, though.
Watch that. Is this safe to do?
What would I type in for it to shut down?