I sent the below code for creating a new database and user in PostgreSQL
su - postgres
postgres@$ createuser green
Created Successfully
postgres@$ createdb greenland
Created Successfully
**Granting privileges on database**
postgres@$ GRANT ALL PRIVILEGES ON DATABASE greenland TO green;
**-bash: GRANT: command not found**
As you see finally, I got a error message
-bash: GRANT: command not found
how can I resolve this problem?