Raspberry Pi Factory Reset Command, Use the command: sudo su –.