How to safety turn off Raspberry Pi?

RaspberryPi card doesn't have no default turn off button.
You can't just disconnect it from power supply - it may cause problems with SD card.
Firstly you should execute command:

1sudo shutdown -h now

Translations: