How to use unix executable file if double clicking it doesnt work?

I'm very new to using terminal on mac and was wondering if anyone can help with the issue I'm having.

I want to use a command that I downloaded but when I double-click this shows up. The terminal window then freezes and when I try to call the command from new shell, then it just says the command can't be found. Would really appreciate some help. Thank you!

Last login: Mon Jun  1 20:37:34 on ttys000 
/Users/harinlee/Downloads/sonic-annotator-1.5-osx-amd64/sonic-annotator ; exit;
(base) Harins-MacBook-Pro:~ harinlee$ /Users/harinlee/Downloads/sonic-annotator-1.5-osx-amd64/sonic-annotator ; exit;
sonic-annotator: no transform(s) specified
sonic-annotator: use -h or --help option for help
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

Solution 1:

If it is meant for command line use, you should type all the required info in the command line. For more help, run these two commands in Terminal app.

cd ~/Downloads/sonic-annotator-1.5-osx-amd64
./sonic-annotator --help
  • https://unix.stackexchange.com/questions/397524/what-does-the-mean-dot-slash-in-linux/397528#397528
  • https://unix.stackexchange.com/a/4432/359891

Many tools provide README, docs or similar files which contain examples of usage.

Also I found the examples of usage in the online docs here, in case anyone wants to check it out:

  • https://code.soundsoftware.ac.uk/projects/sonic-annotator/wiki