How can I restore postgreSQL backup file?

Hi everyone,
I am actually new to PostgreSQL so pardon me for my question if it’s so simple. Is there a way to restore postgreSQL backup using a command line? The backup of the database has already been created and scp’d it already but I can only see files which are related to guis or pg_dumps. Can someone help me how to go along?
