Question: QUESTION 1 In the command Command1 || Command2 Command1 is executed, if it returns a status of zero, then command 2 is executed; otherwise, command2

QUESTION 1

In the command

Command1 || Command2

Command1 is executed, if it returns a status of zero, then command 2 is executed; otherwise, command2 is skipped.

True

False

2 points

QUESTION 2

Which statement best describes when Variable Subsitution (expansion) can occur?

a.

Inside of single quotes

b.

Inside of double quotes

c.

Inside of backquotes

d.

B & C

e.

A & B & C

4 points

QUESTION 3

Note, If field 7 of the password file is empty, it is assumed to be /bin/sh. Which of the following commands count the number of users whose login shell is /bin/sh? (Remember the rule from above.)

a.

( grep ':$' /etc/passwd; grep ':/bin/sh$' /etc/passwd) | wc -l

b.

sed 's,:$,:/bin/sh,' /etc/passwd | grep ':/bin/sh$' | wc -l

c.

egrep -ce ':$|:/bin/sh$' /etc/passwd

d.

A & B & C

e.

A & B

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!