1

I am trying to append text to the /boot/config.txt file but for some reason this is not working with the latest Raspbian(2016-05-27)

pi@raspberrypi:~ $ sudo echo 'dtoverlay=pi3-miniuart-bt' >> /boot/config.txt
-bash: /boot/config.txt: Permission denied

Any clues why this is not working or is there another way to append text to a file?

1 Answer 1

6

The redirection takes place before sudo takes effect.

Try something like

sudo sh -c "echo 'dtoverlay=pi3-miniuart-bt' >> /boot/config.txt"

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.