Permission denied

Hello, I’m a beginner…

I use BeagleBoard.org Debian Image 2016-01-24

I don’t understand why following comand doesn’t work:

root@beaglebone:~# /sys/class/gpio/export

-bash: /sys/class/gpio/export: Permission denied

any idea?

thankyou

Dear pikao,

you are trying to _run_ that file rather than writing into it to
enable a GPIO line. And hence the file doesn't have execute right (as
it meant to written into, not execute) you get a permission error.

You need to call something like:
echo 48 > /sys/class/gpio/export
to enable a GPIO line.

See for example http://www.armhf.com/using-beaglebone-black-gpios/ for
further details.

Regards