Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 15
export command

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

Old 03-20-2010, 07:10 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
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
source ~/.bashrc
This should always work, since ~/.bashrc for each user normally calls the global bashrc file.

--- rod.


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 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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:34 AM.

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