sudo unable to write to /etc/profile
I want to do:
echo "something" >> /etc/config_file
But, since only the root user has write permission to this file, I can't do that. But this:
sudo echo "something" >> /etc/config_file
also doesn't work. Is there any way to append to a file in that situation without having to first open it with a
sudo'd editor and then appending the new content by hand?