Question: In this part, your task is to read % . profile and focus on the if statements that would change the value of PATH, if

In this part, your task is to read %.profile and focus on the if statements that would change the value of PATH, if one of the statements was true. Your goal is to create the things needed for one of the conditions to evaluate to true.
DO NOT MODIFY THE CONTENT of the -profile file. Right now, both conditions evaluate to false.
Think about how you could confirm that statement - that both conditions are currently false.
Remember, the test command is what is being used when you see [(square brackets).
The flag / relational condition being checked is an option of the test command.
What is the current value of the PATH environment variable?
Read through your user's .profile. Pick one condition to make true that, if true, will add the directory to be part of the PATH variable. What needs to happen to make the condition true?
Make the folder required in the location required. Write the command(s) used and the full path of the folder.
Reload %/.profile either with source or by logging out and ssh ing back in. What is the value of the PATH environment variable? What was added now vs. in your answer to 1?
Copy roll into the folder. Write the command(s) used.
Modify the permissions so that you can run your script on the command line from any location. Write the modifications needed.
You can now run roll (without the leading ./ or bash) from anywhere
Note: if you already modified permissions, fill in this question with what you modified.
In terms of user, group, and other, explain who is allowed to run the script.
 In this part, your task is to read %.profile and focus

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!