LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Intro (https://www.linuxquestions.org/questions/linuxquestions-org-member-intro-24/)
-   -   Hello! Juanelo here. Kinda newbie but willing to learn as much as possible. First rookie question is on its way! xD (https://www.linuxquestions.org/questions/linuxquestions-org-member-intro-24/hello-juanelo-here-kinda-newbie-but-willing-to-learn-as-much-as-possible-first-rookie-question-is-on-its-way-xd-4175577471/)

granjuanelo 04-14-2016 02:40 PM

Hello! Juanelo here. Kinda newbie but willing to learn as much as possible. First rookie question is on its way! xD
 
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! :)

ardvark71 04-14-2016 03:51 PM

Hi Juanelo, welcome to the forum :)

Please note that this forum is for introductions only. Please re-post your request for help in the "Newbie" or another appropriate forum. Thanks! ;)

Regards...

offgridguy 04-15-2016 05:29 PM

Welcome to the forum.:)


All times are GMT -5. The time now is 03:35 PM.