Sudo -E echo "export courseRoot=/home/$USER/courseRoot" >> ~/.bashrc


#1

abhisehk@Abhishek:~$ sudo echo “export courseRoot=/home/$USER/courseRoot” >> ~/.bashrc
abhisehk@Abhishek:~$ source .bashrc

Command '“export' not found, did you mean:

command 'mexport' from deb mblaze

I am getting this output


#2

Make sure you don’t use curly quote marks. Python doesn’t like them. Use straight ones.