Add your own file to /etc/profile.d and have it change it by using
I have some troubles with permanently setting my PATH env var in VectorLinux (7.0). I know that I should add some lines like these to ~/.bash_profile:
So now, the path should be modified whenever I'm working in bash. But it does not change. Even after rebooting echo $PATH always gives me the same default PATH in a bash.
The path of my .basrc file is
It is wierd that my file has nothing but the path I set.I think I am using a file at the wrong location or that I have lost my .bashrc file as none of the environment variables set here seem to work.
I have a user, say user1 which has modifications to its .bash_profile, one of them changing the PATH, eg: export PATH=/some/place:$PATH. This change works fine if I log on as user1 or do a su - user1.
But if I try to run a command via su as root, eg:
su -c test.sh oracle
(test contains echo $PATH)
It doesn't seem to have the modified PATH (or the root's PATH, for that matter).
I'm using a mac for some years now and as I'm currently learning ruby on rails, I felt like I should learn more about the system I'm using.
As far as I understand, the usual way to add a path to the PATH environment variable is by concatenating paths separated by the : character.
After installing Android SDK Platform-tools in my HOME folder, I attempted to define the path where ADB was located.
I need to use prebuilt binaries to compile Android from source.
The problem is, that seems like it's using the binaries I do not want it to use.
As far as I understand gcc from the first directory in PATH that contains gcc will be used.
I'm trying to get the names of files from a log file, without the path and special characters.
I have a file that contains lines like this:
I want to execute build.xml file using ant. But I am having trouble with recognizing the path for ant and Java.