Firstly, Macs run binaries and not
adb is a binary, and must take options.
Open Terminal, from
/Applications/Utilities/Terminal.app and you should see something like this (colors should be different):
Now, type in
adb and press return. You should see the same output as you saw in your screenshot. Now, to run the command (the highlighted text in the background), copy (⌘+C) and paste (⌘+V) that text into the terminal window. Everything that follows
adb are called "arguments", like modifiers that affect what the command does. This is quite common in shell commands.
adb shell pm clear com.android.vending
Alternatively, if you have a binary in a specific location, do: (
./ executes a binary)
Side note: autocompletion can be very helpful in long directory names: by typing in a fragment of a name, then hitting Tab, autocompletion will fill in the rest of the fragment (assuming there are no similarly named items). Pressing Tab twice will show you what autocompletion can fill in.
$ cd /Users/Ha *presses tab*
$ cd /Users/Harry/
$ cd /Users/H *presses tab twice*
Harry/ Henry/ Hagrid/
$ cd /Users/H