Make the macOS Dock tiny by using Terminal

If the Size slider in the Dock & Menu Bar system preferences pane doesn't go small enough for you, here's a trick that will.

You probably already know that you can shrink (or enlarge) the Dock by clicking and dragging the bars that separate the applications from folder stacks. You probably also know that you can adjust the Dock size in System Preferences, by opening the Dock & Menu Bar pane and dragging the Size slider whichever way you want.