If you’re using Gnome Shell and you want the window buttons on the left, use this command:

dconf write /org/gnome/shell/overrides/button-layout "close,minimize,maximize:"

Then restart the shell: press Alt+F2, type r and press Enter.