Jump to content

Am I messing up the system?[Solved]

Recommended Posts

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?





[moved from Software by spinynorman]

Edited by M_R
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...