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

Quiz Question 1 (0.1 points) Assuming var1=10 (var1 is a variable), which of the

ID: 3881943 • Letter: Q

Question

Quiz

Question 1 (0.1 points)

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

Save

Note: It is recommended that you save your response as you complete each question.

Explanation / Answer

If you post more than 1 question, as per chegg guidelines I have to solve only 1 question.

Question 2. Answer : (d) >

This is the character that appears when the command continues on the next line.

Question 3. Answer : (a) read

read command is used to get user input.