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?

asked Aug 3, 2016 at 7:54

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"

answered Aug 3, 2016 at 7:59
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.