Filters
Question type

The redirect operator used to send the output of a command to a file is written as


A) /
B) #
C) |
D) >

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Shell scripts can obtain user input using the command


A) input
B) var
C) read
D) cat

E) A) and D)
F) B) and D)

Correct Answer

verifed

verified

The difference between break and continue while processing loop input is that


A) break exits the loop, but continue only exits the current iteration of the loop
B) break only exits the current iteration of the loop, but continue exits the loop
C) break and continue exit the loop
D) break and continue both exit only the current iteration of the loop

E) None of the above
F) A) and C)

Correct Answer

verifed

verified

Consider the following script. The output will be newlines replaced by spaces for brevity) : #! /bin/bash for number in {51}\{ 5 \ldots 1 \} do echo snumber done


A) 5 .. 1
B) 5 4 3 2 1
C) 1 2 3 4 5
D) 5 3 1

E) A) and C)
F) B) and D)

Correct Answer

verifed

verified

The command to view the contents of a variable at the shell prompt is


A) variablename
B) echo variablename
C) echo $variablename
D) $variablename

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

Showing 21 - 25 of 25

Related Exams

Show Answer