I want to keep the Dock on the left/right/top side instead of the bottom side of my screen.
Is there a setting in System Preferences or a Terminal command that allows me to change this?
You can change the position of the Dock by following these steps.
Locate the separator between your apps and the trash can and other folders. In older versions of macOS, this is a dotted line. In the example screenshot, this is between Google Chrome and the Downloads folder.