@yx It looks as though you're trying to use Ubuntu commands on Mac OS which won't work.
While is is possible to install adb on Mac OS we can't provide much in terms of support. I would so a search for "installing ADB on Mac OS",
my search brings me here: https://stackoverflow.com/questions/31374085/installing-adb-on-macos which seems valid