Works properly.

```
root@desktop:/home/michal# sudo -u postgres psql -c "\dg"
                             List of roles
 Role name |                   Attributes                   | Member of 
-----------+------------------------------------------------+-----------
 ?         |                                                | {}
 michal    |                                                | {}
 michal2   |                                                | {}
 michal22  |                                                | {}
 postgres  | Superuser, Create role, Create DB, Replication | {}

root@desktop:/home/michal# sudo -u postgres psql -c "\l"
                                  List of databases
    Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   
------------+----------+----------+-------------+-------------+-----------------------
 michaldb   | michal   | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 michaldb1  | michal   | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 michaldb11 | michal2  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 postgres   | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 template0  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
            |          |          |             |             | postgres=CTc/postgres
 template1  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
            |          |          |             |             | postgres=CTc/postgres
(6 rows)

root@desktop:/home/michal# 

```