Bash Shell Scripting - Debugging - Part 2

Bash Shell Scripting - Debugging - Part 2

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains the use of the SET and SHOPT commands in Unix and Bash shells to change shell behavior. It covers how to enable and disable debugging options using these commands, and how these options are stored in shell variables. The tutorial also clarifies the differences and similarities between the two commands and provides resources for further reading.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What was the original shell that introduced the SET command?

Bash

Bourne

Csh

Zsh

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to enable debugging in a script?

shopt -u

shopt -s

set -o

set -x

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where are the options enabled by the SET command stored?

PATH

ENV

SHELLOPTS

BASHOPTS

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What variable stores the options enabled by the SHOPT command?

ENV

PATH

SHELLOPTS

BASHOPTS

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you list all the options enabled by the SHOPT command?

shopt

shopt -s

set -o

set -x