LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2010, 12:36 PM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
export command


Hi,
in Debian, which is the correct file to add export commands like:
export APXS2=/opt/apache2/bin/apxs
so that the command be executed by OS initialization

thanks
 
Old 03-20-2010, 07:10 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Those commands are not executed by the OS. They are executed by the command shell (at least if it is Bourne style shell, like bash), under certain circumstances. If you want all users to have the same commands invoked each time they start a new shell, then you can put them in /etc/bashrc. If you only want them to be established for your own userId, then the ~/.bashrc file is the right place. Any new shell that is launched thereafter will read and set the new values. If you want to have an existing shell to re-read the settings, you can
Code:
source ~/.bashrc
This should always work, since ~/.bashrc for each user normally calls the global bashrc file.

--- rod.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] export command deostroll Linux - Newbie 5 02-20-2010 06:55 AM
import and export command mrbutabara Linux - Newbie 1 02-17-2009 09:21 AM
export command rohr Mandriva 1 04-11-2005 05:24 AM
set/export command? blackzone Linux - Newbie 1 03-05-2005 07:11 PM
Export Command choawk Linux - General 1 06-06-2003 01:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 PM.

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