To switch on :- plug it in. To switch off :- If you are in the graphical environment, 1. exit to the bash prompt or 2. open the terminal. From the bash prompt or terminal shut down the Raspberry Pi by entering “sudo halt -h” (without the quotation marks). And wait until all the LEDs except the power LED are off, then wait to make sure the SD card to finish its wear leveling tasks and write actions. After that safely unplug the Raspberry Pi.