Raspberry Pi GPIO pin state controller
The raspi-gpioctl is a tiny package that provides a simple little command line tool, gpioctl, that allows minimal Raspberry PI GPIO pin state management.
To read the state of pin 18 when it is in output mode and turned on:
$ gpioctl 18 function: output state: 1
To set pin 23 to output mode and turn it off:
$ gpioctl 23 off
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.