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

Assuming var1=10 (var1 is a variable), which of the following will NOT show “var

ID: 3882081 • Letter: A

Question

Assuming var1=10 (var1 is a variable), which of the following will NOT show “var1=10” on the screen?

Question 1 options:

echo var1=$var1

echo 'var1=$var1'

echo "var1=$var1"

printf var1=$var1

Save

Question 2 (0.1 points)

Which character is used to continue a command to the next line?

Question 2 options:

/

+

>

Save

Question 3 (0.1 points)

Which command is used to accept user input from keyboard?

Question 3 options:

read

get

accept

input

Save

Question 4 (0.1 points)

Which of the following about command alias is NOT correct?

Question 4 options:

An alias can be removed

alias is a Shell Built-in command

alias name can be the same as the original command name

The original command cannot be reached until the alias is removed

Save

Question 5 (0.1 points)

Which of the following is a NOT valid shell for Linux

Question 5 options:

bash

csh

ash

sh

Save

Question 6 (0.1 points)

Which of the following is not a Shell Built-in?

Question 6 options:

cd

dir

type

export

Save

Question 7 (0.2 points)

Which of the following is NOT the correct way to get the number of all subdirectories?

Question 7 options:

ls -al | grep d | wc -l

ls -Fa | grep / | wc-l

ls */ .*/ -d | wc -l

ls -la | grep ^d | wc -l

Save

Question 8 (0.2 points)

Which of the following use of channel reroute symbol (syntax) is incorrect?

Question 8 options:

cat < file1

cat 2> file1

cat >> file1

read <2 file1

echo var1=$var1

echo 'var1=$var1'

echo "var1=$var1"

printf var1=$var1

Explanation / Answer

According to chegg guidelines i hsve to solve first four bits only.

1.

Option 1 correct.

echo var1=$var1 is not a valid syntax.

echo 'var1=$var1' // It print var1=10

echo "var1=$var1" // It print var1=10

printf var1=$var1 // It print var1=10

2.

Option 1 correct.

3.

Option 1 correct.

4.

Option 1 correct.

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