Question: Using Linux and the picture above answer the questions... 22.Enter on Blackboard You are located now in the bob directory. If you execute the command:

Using Linux and the picture above answer the questions... Using Linux and the picture above answer the questions... 22.Enter on Blackboard

22.Enter on Blackboard You are located now in the bob directory. If you execute the command:

[user_prompt]$ cp csc209/lab01/hello.c ../

where will the new copy of that file be located?

23.Enter on Blackboard You are located now in the bob directory. If you execute the command:

[user_prompt]$ cp csc209/lab01/hello.c ../../faculty/jlucas/csc422

where will the new copy of that file be located?

Earlier you executed the commands:

[user_prompt]$ cd ~/csc209/lab02

[user_prompt]$ touch foo/bar

and there was an error message.

24.Enter on Blackboard Are there any possible circumstances where this touch command would be legal? Explain why or why not.

We are working in the bash shell. bash has several environment variables which affect the way it behaves. You can determine the values of some of those variables as follows:

[user_prompt]$ echo $USER

[user_prompt]$ echo $HOME

Note that the $ (dollar sign) character is the variable substitution special character.

In bash, if you want to view all currently set environmental variables, you can execute:

[user_prompt]$ printenv

PATH is another shell variable, and it is a simple String that consists of a list of directories. Execute the command:

[user_prompt]$ echo $PATH

25.Enter on Blackboard Copy and paste the one-line output of the command echo $PATH. How many directories are listed? What character is used as the separator character in this list? List all the directories in the output of

[user_prompt]$ echo $PATH

that are specified with a relative pathname.

var bin home etc usr faculty student passwd trao jlucas smitra alice bob CSC422 bin CSC205 CSC209 bear.jpg CSC209 hello lab01 lab02 lab01 lab02 hello.py hello.c hello.py hello.c var bin home etc usr faculty student passwd trao jlucas smitra alice bob CSC422 bin CSC205 CSC209 bear.jpg CSC209 hello lab01 lab02 lab01 lab02 hello.py hello.c hello.py hello.c

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!