How to change terminal emulator keyboard shortcuts from cli?

I know how to change terminal shortcuts using GUI as it is explained here

However, how to do so from cli?

I want to use Ctrl+c and Ctrl+v for copy and paste.


Solution 1:

Keybindings of Gnome Terminal are stored as dconf settings, and thus can be changed with the gsettings command, e.g.

gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ copy "'<Control>c'"