I have not tried this yet, but here a few Unix tips.
Terminal windows are case sensitive, so make sure its "aim" not "AIM" etc.
second, unless you added aim to your path, it will report command not found unless u are in the directory of the program.
do an "ls" to see what it is called...