Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-23-2006, 09:19 AM   #1
LQ Newbie
Registered: May 2006
Posts: 13

Rep: Reputation: 0
httpd -l and mysql -p at any command line prompt


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

Old 05-23-2006, 10:58 AM   #2
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Add the directories to your path.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line/ command prompt saiinch Linux - Newbie 5 03-17-2006 03:29 AM
Bringing Up Command Line\prompt hondagetter Linux - General 3 09-04-2005 07:13 AM
MySQL command prompt (/usr/local/mysql missing) sankar555 Linux - Software 3 03-22-2003 01:48 PM
MySQL command line buddy Linux - General 3 01-16-2003 09:14 AM
problem with command line prompt ??? robeb Linux - General 2 12-07-2002 09:47 PM

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration