M_R Posted April 7, 2011 Report Share Posted April 7, 2011 (edited) Hello. This is a quick question: I'm tired of having to modify bashprofile files for every single user to be able to run programs from commandline without having to type the entire path. So I discovered that by placing a symbolic link in /usr/local/bin, all users (including root) can run the program easily. Is this evil? Am I breaking the system? Thanks [moved from Software by spinynorman] Edited September 26, 2011 by M_R Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted April 7, 2011 Report Share Posted April 7, 2011 No, definitely not breaking the system. Quote Link to comment Share on other sites More sharing options...
M_R Posted April 7, 2011 Author Report Share Posted April 7, 2011 No, definitely not breaking the system. Glad to know. Now, is there any downside? and should I Remove the entries for Java in the bash profile for each user since they can now run it without using bashprofle? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted April 8, 2011 Report Share Posted April 8, 2011 I normally install java versions from sun ending in rpm.bin, because it does it system-wide and thus you don't need to manually export JAVA_HOME or anything else like that. The .bin just extracts and then the rest is a case of manual configuration. It would be messy moving the java executables and all the other java directories under /usr/local/bin. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted April 8, 2011 Report Share Posted April 8, 2011 The regular ways to run programs which are outside the system paths are two: 1. Creating a helpfolder (e.g. /opt/progs), linking the programs in there and finally adding /opt/progs to the system PATH 2. Creating aliases to the user's ~.bashrc file. These are user-specific, of course. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted April 9, 2011 Report Share Posted April 9, 2011 Aliases can be made system-wide with /etc/bashrc. That way you would only need to edit this, and every user would get your customisations as scarecrow mentions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.