LinuxQuestions.org
Help answer threads with 0 replies.
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 08-23-2012, 06:53 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,203

Rep: Reputation: Disabled
Question One more "export" question


If there is
Code:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PATH
in /etc/profile, is it OK to make it
Code:
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
to make config shorter?
 
Old 08-23-2012, 06:59 AM   #2
byannoni
Member
 
Registered: Aug 2012
Location: /home/byannoni
Distribution: Arch
Posts: 128

Rep: Reputation: 36
Yes, as long as it isn't modified between the original two lines.
 
Old 08-23-2012, 07:05 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,203

Original Poster
Rep: Reputation: Disabled
How's that? Is wasn't one line originally after installation.

Last edited by Mr. Alex; 08-23-2012 at 08:16 AM.
 
Old 08-23-2012, 07:17 AM   #4
byannoni
Member
 
Registered: Aug 2012
Location: /home/byannoni
Distribution: Arch
Posts: 128

Rep: Reputation: 36
Quote:
Originally Posted by Mr. Alex View Post
How's that? Is was't one line originally after installation.
I'm not sure what you mean by that, but based on your previous post, you should be fine.
 
1 members found this post helpful.
Old 08-23-2012, 08:21 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
I agree its not a clear qn, but the point byannoni was making/hinting at is that several files are called during a login process and any/all(!) of them can set/rest env vars, including PATH.
Files include (but are not limited to)
/etc/profile (&/or see /etc/profile.d)
/etc/bashrc
.bashrc
.bash_profile

'not limited to' means that they can all call other files which can set env vars ...
 
  


Reply

Tags
export, path, profile


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
[SOLVED] A "DropBox" question, error: Can't sync:".directory":access denied. Robert.Thompson Slackware 4 08-25-2011 09:02 AM
How to change " setenv IDLUTILS_DIR ~/idl/idlutils" to "export"?? msbstar Linux - Newbie 3 02-05-2011 04:23 AM
[SOLVED] export contacts and email back to "Windows Mail" from Ubuntu Desdd57 Linux - Newbie 21 11-02-2010 10:39 PM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
[SOLVED] alias startdwm="export MYWM=dwm & startx" Mol_Bolom Programming 1 07-12-2009 02:21 AM


All times are GMT -5. The time now is 09:29 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