How to open a Database using Unix Command Please Do Reply

Answer Posted / arvind kumar

Sudo -U Postgres psql Database_name;
It will prompt you for password give correct password and
you can access the given database if it exist.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What command is used to check the current users?

780


Give the command for finding the current date.

756


Differentiate cmp command from diff command.

792


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

888


Explain the steps that a shell follows while processing a command.

906


What are the unix commands?

744


What is the use of the command 'ls -x chapter[1-5]' ?

888


What is the use of the tee command?

804


Explain command to display different lines that are found when compare two files?

880


How can we use grep command in unix?

829


How do I use nslookup?

754


What are the differences among a system call, a library function, and a unix command?

792


What do chgrp command do?

818


What is the use of find command in unix?

751


What does the command '$ls | wc –l > file1' do?

893