function
hello!
I've just installed a program, but for running it, I must write everytime the full path... I'd like to write a function , for example : function program() { /home/user/program/program } But every time I quit the shell, I must write the function another time :-) how can I save the function? I'm using SuSe 9.0 thanks |
You can add your function to the .bashrc file located in your home directory.
Instead of writing a function, you could have created a symbolic link (using the ln command) poining to the path of the program. You would have then placed this link in a directory that belongs to the $PATH enviroment variable (ex : /usr/bin or /usr/local/bin). Hope that helps. |
thanks for the information, that whas just what i needed ...first, i learned how to write functions that are always available, then i made the link that you told me and everything's okay ... thanks a lot
|
All times are GMT -5. The time now is 10:42 AM. |