LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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: Ubuntu 12.04, Antix19.3
Posts: 3,794

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration