I want to do a simple redirection. When I do
sudo curl <insert link here> > a.txt
I want to take all of the data outputted by the curl into a.txt. However, I keep getting an error saying
a.txt: Permission denied
Would anyone have any idea how to get around this? I've tried looking online by doing
sudo bash -c curl <insert link here> > a.txt
and that displays the same error. Any help would be appreciated! Thanks!