I am trying to backup a db of postgresql and I want to use `pg_dump` command.  

I tried :

```
psql -U postgres
postgres-# pg_dump test > backup.sql

```

But I don't know where the output file goes.  

Any help will be appreciated