12 - Automation

12 - Automation

Assessment

Flashcard

Computers

University

Practice Problem

Hard

Created by

John Fenner

Used 2+ times

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

To start a BASH script, enter __________ as the first line of the script file in a text editor.

Back

#!/bin/bash

2.

FLASHCARD QUESTION

Front

The _____ command will invoke a shell within the user's current shell

Back

source

3.

FLASHCARD QUESTION

Front

Comments in a BASH script start with the __________ character and extend to the end of the line.

Back

#

4.

FLASHCARD QUESTION

Front

Which variable represents the first positional variable? Options: $0, $1, #0, #1

Back

$1

5.

FLASHCARD QUESTION

Front

In the BASH shell, an 'else, if' statement is spelled __________ and is not required if you don't want to perform additional conditional checks.

Back

elif

6.

FLASHCARD QUESTION

Front

When using conditional statements in BASH scripts, what is true about spacing around square brackets?

Back

There should be a space before and after each square bracket.

7.

FLASHCARD QUESTION

Front

Command substitution, the process of executing a subcommand within a larger command, can be performed using which method?

Back

$(cmd)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?