Hi guys,
I am Juanelo. Glad to be here and try to learn and share about Linux.
This is my first question, so maybe it's a very easy one. Please be kind with me xD
I got a VM with CentOS on it which has already some shell functions precharged on them, e.g.
function1. I want to modify one of this functions because I need to add some environmental variables to it but I simply cannot find its location.
If I type "type function1" the shell shows me it is actually a function and I can see its definition so I guess it should be stored somewhere in the system. I tried to locate it by examining the directories defined in $PATH but unfortunately I cannot find it anywhere.
I guess the easiest way would be to copy all the definition into a new file, add the required variables and then copy it within one of the directories set on $PATH, but I would like to learn how to locate and edit it, in case it is hidden or something.
I would really appreciate any explanation on this and any help.
Thank you!