I inserted a data into a table....I wanna see now whole table with rows and columns and data. How I can display it through command?
If your DB is password protected, then the solution would be:
PGPASSWORD=password psql -U username -d dbname -c "select * from my_table"