Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 2 In the command head cheese.txt > cheese2.txt the > character is used

ID: 3573458 • Letter: Q

Question

Question 2

In the command

     head cheese.txt > cheese2.txt

the > character is used as a(n):

defining operator

evaluating operator

arithmetic/relational operator

redirection operator


Question 5

Which of these files would not be matched by the command

     ls file?.txt

file1.txt

fileB.txt

file9.txt

file10.txt

Question 6

In order for the shell to recognize your current directory when looking for executable programs, modify the ______ variable.

ENV

PATH

HOME

PWD

Question 7

Which command displays all of your environment variables?

var

alias

printenv

tr

  

Question 8

In the statement

if [ "$var1" > "$var2" ]

the > character is used as a(n):

defining operator

evaluating operator

arithmetic/relational operator

redirection operator

Question 9

case logic is useful when the decision making in the script involves a lot of choices.

True

False

  

Question 10

A shell variable will only be recognized by the current shell unless you export it.

True

False

A.

defining operator

B.

evaluating operator

C.

arithmetic/relational operator

D.

redirection operator

Explanation / Answer

Answer :

Question 2

In the command

     head cheese.txt > cheese2.txt

the > character is used as a(n):

A.defining operator

B.evaluating operator

C.arithmetic/relational operator

D.redirection operator

Answer :

D.redirection operator

Explanation :

In the command head cheese.txt > cheese2.txt,the > character is used as a(n) redirection operator.

......................

Question 4

Because shell scripts are not compiled, they require a(n) _______ to run.

Answer :

C.interpreter

...........

Question 5

Which of these files would not be matched by the command

     ls file?.txt

Answer :

B.fileB.txt

..............

Question 6

In order for the shell to recognize your current directory when looking for executable programs, modify the ______ variable.

Answer :

B.PATH

...................

Question 7

Which command displays all of your environment variables?

A.var

B.alias

C.printenv

D.tr

Answer :

C.printenv

Explanation :

The commands env,set and printenv displays all environment variables.So printenv command displays all of your environment variables.

....................

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote