Solved

Linux, PATH, etc

Posted on 2013-11-29
3
268 Views
Last Modified: 2013-12-04
I want to permanently change the PATH, LD_LIBRARY_PATH, etc

What file contains the PATH and LD_LIBRARY_PATH such that these will be set system wide upon boot up ?

Thanks
0
Comment
Question by:Los Angeles1
3 Comments
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 167 total points
Comment Utility
Should be in /etc/profile (or in scripts residing in the directory /etc/profile.d/, if present) or perhaps in /etc/environment (preferred if supported),  depending on the OS in use.
0
 
LVL 8

Assisted Solution

by:Pepe2323
Pepe2323 earned 166 total points
Comment Utility
Hi

if you want all users have those Variables defined by default, then yes modify /etc/profile as woolmilkporc says; if it's only for a few or a single user (s), then you have to define it on profile of that user.

for BASH shell it is on the home directory of that user add those variables on .bash_profile, some other shells use .profile

Regards.
0
 
LVL 25

Accepted Solution

by:
madunix earned 167 total points
Comment Utility
LD_LIBRARY_PATH should be used only temporarly or during development process, and never be set globally, instead you could use ldconfig.
http://www.cyberciti.biz/tips/linux-shared-library-management.html
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now