LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 01: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, 08:10 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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


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


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


All times are GMT -5. The time now is 12:14 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration