Equivalent Linux commands for Windows ones to create user and database There is a manual for configuring PostgreSQL on Windows with these commands:
C:\&quot;Program Files&quot;\PostgreSQL\12\bin\createuser.exe --username=postgres --superuser --pwprompt saleor

C:\&quot;Program Files&quot;\PostgreSQL\12\bin\createdb.exe --username=postgres --owner=saleor saleor

I'm going to do the same on Linux, but I'm not sure how.
I know that I have to do:
&gt; sudo su postgres
&gt; psql 

psql (13.3)
Type &quot;help&quot; for help.

postgres=# 

But I'm not sure what to do next. I appreciate any help.
On a 32-bit openSUSE Tumbleweed with PostgreSQL 13 installed. Just run:
&gt; sudo su postgres
&gt; createuser --username=postgres --superuser --pwprompt saleor
&gt; createdb --username=postgres --owner=saleor saleor

If the user already exists, it can be deleted by:
&gt; sudo su postgres
&gt; dropuser --username=postgres saleor

To see a list of users and databases, just run:
&gt; sudo su postgres
&gt; psql
# \du
# \l
# \q