WiringPi includes a command-line utility gpio which can be used to program and setup the GPIO Pins – you can use this to read and write the pins and even use it to control them from shell scripts
# cd /usr/local/bin
# git clone https://github.com/LeMaker/WiringBPi.git
# cd /usr/local/bin/WiringBPi
# chmod +x build
# ./build
# gpio readall
