I usually sudo -i first then I run the command and you don't get permission denied.
You could also run it the same way as
echo 255 | sudo tee -a /sys/devices/platform/applesmc.768/leds/smc::kbd_backlight/brightness
Both work, I like your path better cause its shorter.
I usually sudo -i first then I run the command and you don't get permission denied. platform/ applesmc. 768/leds/ smc::kbd_ backlight/ brightness
You could also run it the same way as
echo 255 | sudo tee -a /sys/devices/
Both work, I like your path better cause its shorter.