LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   httpd -l and mysql -p at any command line prompt (https://www.linuxquestions.org/questions/linux-general-1/httpd-l-and-mysql-p-at-any-command-line-prompt-447685/)

ZC1 05-23-2006 08:19 AM

httpd -l and mysql -p at any command line prompt
 
Hi,

I would like to be able to run the following command at any command line prompt

# httpd -l

instead of /usr/local/apache/bin/httpd -l

# mysql -p

instead of /usr/local/mysql/bin/mysql -p

There are some other commands for mysql like mysqladmin I would like to add.

I am aware of alias in the .bash_profile could be setup to do this, but I would really like it to be setup as it was when I had a default server install of CentOS 4.3

Regards,
Garry

Wim Sturkenboom 05-23-2006 09:58 AM

Add the directories to your path.


All times are GMT -5. The time now is 04:35 AM.