Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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... image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Neo4j Data Modeling

Authors: Steve Hoberman ,David Fauth

1st Edition

1634621913, 978-1634621915

More Books

Students also viewed these Databases questions