pg_conftool - read and edit PostgreSQL cluster configuration files (postgresql-common)
pg_conftool [OPTIONS] [version cluster] [configfile] {show|set|remove|edit} [parameter [value]]
Examples
$ pg_conftool 18 main show max_connectionswhat the file says
$ sudo pg_conftool 18 main set work_mem 16MBchange it in postgresql.conf
Try pg_conftool in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.