Newbie - Gedit - Don't open.

I’m trying the following command:

sudo gedit /etc/modprobe.d/sound

But I’m getting this:
(gedit:22676): Gtk-WARNING **: cannot open display:

I need to edit this file so I can try to configure my laptop sound. What should I do?


You could try using vi. It’s a little less intuitive than gedit, but it will do the job. Look at man vi first to get the basic functions.