Use sudo tee -a instead of >>