Shell Script Commands

27 Jul

Search for something in Linux

rpm -q -a | grep mysql   (searches for mysql files)
rpm -q -l mysql          (lists out the path of mysql search string) 

Load Putty first and Connect to the Remote Host using Remote Username and Password

1) pwd : to locate the absolute path
2) Ls -l   : list all the directory info.
3) Ls : list all the directory info in wide format.
4)  ./  : used to execute shell script files with “.sh” extension.
5) cp : copy directory from one path to another
6) cd .. : change directory just like any other Dos Directory.

htpasswd -m /etc/.svn-auth-file <username> — to create user account(must be root)  is to create a username and password from apache to use with Subversion. (subversion installation instructions).

actual path is    “htpasswd -m /srv/svn/access/users  username  (pressing enter will ask for password followed by password confirmation and will be saved into the access file.

# service httpd restart
(will restart the apache server).


Posted by on July 27, 2009 in Database Administration, shell script


Tags: , ,

2 responses to “Shell Script Commands

  1. Jenny

    September 22, 2009 at 8:33 pm

    I am appearing for ORACLE DBA interview. Can anybody out there help me with interview question and answers. consider this as highest priority.

    Especially I am looking at interview questions ranging from installations on Solaris, AIX, Configurations, migration, replication, DATAGAURD, and RAC.

    Thanks in advance.

    • grabameat

      September 22, 2009 at 8:56 pm

      Hi Jenny, Please GO through my blog articles and let me know if you need anything else.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: