117k views
1 vote
You use the same five shell functions every day and are looking for a way to ensure they are available as soon as you log into your account. What can you do?a. Make them residual system variables.b. Make them permanent environment variables.c. Load them via your login script.d. Make them permanent functions by adding them to the function directory.

User Zombi
by
7.4k points

1 Answer

2 votes

Answer:

.c. Load them via your login script.

Step-by-step explanation:

Given that using functions in shell scripts enhances programming output and login script comprises the functions and statements required to effectively execute at any given time the user logs into their account.

Hence the moment these functions are formulated, they are then executed through a single command statement thereby reducing the time of re-writing another set of code repeatedly in every program.

Therefore, in this case, what you can do is to "Load them via your login script."

User Roun
by
7.5k points

No related questions found