You definitely don't want to just pull the plug. This can cause problems with the SD card and file system.
From the command line
FromWhen using the command line or a terminal window, you can enter the following to do a clean shutdown:
sudo shutdown -h now
Or from the LXDE GUI:
From the LXDE GUI
Click the shutdown button (red power button) in the menu bar at the bottom right corner of the screen. Then click shutdown (or logout on newer version, then issue the shutdown command listed above),
- Click the shutdown button (red power button) in the menu bar at the bottom right corner of the screen.
- Click shutdown (or "logout" as shown on newer versions, then issue the shutdown command listed above).
Once it says "system halted"System halted, you can remove the power cord if needed.