I was initially on Unity desktop but I installed GNOME and I want to move the buttons to the right. I have tried commands like
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
but nothing happened actually. The result of
rxyz@rxyz:~$ ls /usr/bin/*session* /usr/bin/dbus-run-session /usr/bin/gnome-session-quit /usr/bin/gnome-session /usr/bin/session-installer /usr/bin/gnome-session-classic /usr/bin/session-migration /usr/bin/gnome-session-inhibit /usr/bin/x-session-manager /usr/bin/gnome-session-properties