In 2019 you still cannot get a decent macOS-like modifier key setup on Linux where OS-keys are mapped to Super (e.g. Super-C being copy) and such that Control works like it does on macOS, so I still always find these kinds of articles nice but you're in for lots of surprises if you try to switch.
And I say this as someone with both macOS and Linux laptops that I work from, but because of the above and other similar things I think you're always up for disappointment if you expect to get Linux to be exactly like macOS.
setxkbmap -option ctrl:swap_lwin_lctl -option ctrl:swap_rwin_rctl
It's not as simple as swapping the keys. On macOS you use the "win key" for system shortcuts but you can also use the Ctrl key for emacs-style movement systemwide.
For example I can type Ctrl-b while editing the URL in the browser omnibar to move the cursor back a character or alt-b to move it back a word, just like you can in the terminal and then use "Win"-b to bookmark a page.
And your command changes the keys you use for moving the cursor in the terminal.