how to change postgres password in linux code example
Example 1: alter user password postgres
ALTER USER user_name WITH PASSWORD 'new_password';
Example 2: how to connect postgres user password using command line
sudo -u postgres psql postgres
Example 3: how to connect postgres user password using command line
\password postgres