How can I set the default terminal? Preferably from the command line [duplicate]

sudo update-alternatives --config x-terminal-emulator

Should run something like:

$ sudo update-alternatives --config x-terminal-emulator

There are 7 alternatives which provide `x-terminal-emulator’.

Selection Alternative
———————————————–
    1 /usr/bin/xterm
    2 /usr/bin/uxterm
    3 /usr/bin/koi8rxterm
    4 /usr/bin/lxterm
*+ 5 /usr/bin/gnome-terminal.wrapper
    6 /usr/bin/konsole
    7 /usr/bin/xfce4-terminal.wrapper

Press enter to keep the default[*], or type selection number:

sudo update-alternatives --config x-terminal-emulator

recommended here, here, and here seems to work.