title: How to import the .sql file to PostgreSQL database in Ubuntu
body: <p>i need one help.I need to import one .sql file into PostgreSQL database using Ubuntu.Now i am in the following state.</p>
  
  <p><a href="https://i.stack.imgur.com/UBotm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UBotm.png" alt="enter image description here"></a></p>
  
  <p>I have the .sql file already in this <code>/home/subhrajyoti/Sallon/sallon_test1.sql</code> path.In this file also the following query is present.</p>
  
  <pre><code>CREATE DATABASE ebdb WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8';
  </code></pre>
  
  <p>Here i need command to import this file into my postgreSQL database and chcek the data later.Please help me to do this.</p>