You can manipulate the I/O pins directly from Linux sysfs interface.

Instead of copying Sergey's post, I will just link to it. He does a great job of showing how to use the I/O pins from the Linux command line.