LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2016, 07:51 PM   #1
eco_bach
Member
 
Registered: Dec 2016
Posts: 242

Rep: Reputation: Disabled
Changing Environment variables


Hi
trying to troubleshoot an application not launching(Houdini) so ruling out possible causes.

When I observe my $PATH variables I get

/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/foo/.local/bin:/home/foo/bin

Does that look correct?

Confused by the documentation to change or update yout PATH vars.
http://centoshowtos.org/environment-variables/

To make them permanent it says you must add an entry in /etc/profile.d

Fine, but in that folder are a bunch of .sh files.
How would you edit the EXISTING PATH vars?
 
Old 12-06-2016, 08:32 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
To add to the PATH:
Code:
PATH='$PATH:/directory'
 
Old 12-06-2016, 08:43 PM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Yes. Your path looks correct. To make them permanent for one user, you can edit their /home/username/.bash_profile or .bashrc to have your changes:

Code:
# .bash_profile or .bashrc
export PATH="${PATH}:/your/new/path:/another/new/path
To make them permanent for the whole system and all users, you can add/edit the same in either /etc/bashrc or /etc/profile

Usually environment stuff like PATH goes in /etc/profile
 
  


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
SSH is changing environment variables rjkfsm Linux - Newbie 4 11-15-2014 03:47 PM
Does changing environment variables always reflect on the shell? ulkoma Linux - Newbie 6 05-24-2013 07:59 AM
environment variables hellowb Linux - Newbie 4 03-11-2009 10:28 PM
changing environment variables. Geminias Linux - Newbie 2 01-04-2006 06:02 PM
environment variables Prakhardeep Linux - Software 3 10-06-2004 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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