I am new to linux, and just beginning to learn bash. I am using Ubuntu 9.04, and would like to add repositories to /etc/apt/sources.list from the command line. Basically, I would like to do this:
sudo echo "[some repository]" >> /etc/apt/sources.list
However, even when I use sudo, I get this error:
bash: /etc/apt/sources.list: Permission denied
How do I avoid this error?