LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

Rep: Reputation: 0
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
 
Old 05-23-2006, 09: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.
 
  


Reply


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 02:29 AM
Bringing Up Command Line\prompt hondagetter Linux - General 3 09-04-2005 06:13 AM
MySQL command prompt (/usr/local/mysql missing) sankar555 Linux - Software 3 03-22-2003 12:48 PM
MySQL command line buddy Linux - General 3 01-16-2003 08:14 AM
problem with command line prompt ??? robeb Linux - General 2 12-07-2002 08:47 PM


All times are GMT -5. The time now is 05:26 AM.

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