|
|
|
|
H-Desk.com - PC Security matters - Protect your PC privacy
|
|
POSIX Shell: Environment Variables
|
 |
|
|
| Author |
Message |
gaston
Joined: 20 Mar 2004 Posts: 189
|
Posted: 05/21/07 - 07:32 Post subject: |
|
|
| I am trying to make in my home directory folder which will contains programs and an executable script. I want to provide possibility that when ever I open the shell I can execute that programs and scripts, but without going to folder where they are located. I know it is possible, because I have worked a long time ago with BASH SHELL, but I forgot how to set environment variables. |
|
|
Back to top
|
|
|
|
 |
martie
Joined: 26 May 2005 Posts: 201
|
Posted: 06/15/07 - 03:54 Post subject: |
|
|
First of all, you have to open a configuration file. For that action you will need root access. After that in the configuration file find the line beginning with $PATH. On that line add absolute path to folder with your programs and executable scripts. This will add folder of yours to system search path, so all commands you enter will be looked for along that path. You can, also, do it temporarily by issuing next command in shell prompt:
$ typeset r PATH(absolute path to your folder)
|
|
|
Back to top
|
|
|
|
 |
|
 |
All times are GMT
|
|
|