Exam 5: Creating Shell Scripts and Displaying File Contents

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Which command can be used to display a text file's contents in reverse order and why might a user want to do this?

(Essay)
5.0/5
(41)

Identify and define the three categories of file permissions.

(Essay)
4.9/5
(40)

Match each statement with an item -A loop statement that tests a condition in much the same way as if-then statements.

(Multiple Choice)
4.9/5
(38)

Which command ends a case statement?

(Multiple Choice)
4.8/5
(38)

When you run the scr1 script using the ./scr1 command, the filename is considered position zero in the command, and the text ./scr1 becomes the value of the ____ variable.

(Multiple Choice)
4.7/5
(45)

Which command works the same as the more command but offers more flexibility in navigation?

(Multiple Choice)
4.9/5
(44)

The functions of the three permission types (read, write, and execute) are applied the same for files and directories.

(True/False)
4.9/5
(37)

The BASH shell is an example of a(n)____.

(Multiple Choice)
4.7/5
(33)

Which variable assignment method is useful when you need information from the user to complete the script?

(Multiple Choice)
5.0/5
(37)

The head command displays the first ____ lines of a text file.

(Multiple Choice)
4.9/5
(34)

Why is it essential to understand the basics of shell scripting?

(Essay)
4.8/5
(33)

The case statement syntax requires a(n) ____ to mark the end of each code portion matching a specific value.

(Multiple Choice)
4.8/5
(33)

Describe a shell variable.

(Essay)
4.9/5
(40)

With a compiled program, all the source code is converted to machine code and stored in a ____ before the user runs the script.

(Multiple Choice)
4.8/5
(32)

Match each statement with an item -Starts the portion of code specifying what to do if the condition evaluates to false.

(Multiple Choice)
5.0/5
(42)

The if statement can only return a binary zero or one condition.

(True/False)
4.7/5
(43)

Match each statement with an item -Indicates the end of the code to be repeated.

(Multiple Choice)
4.7/5
(32)

Describe the case statement.

(Essay)
4.8/5
(34)

What is the corresponding numeric notation for a file with rw-rw-r-- permissions?

(Multiple Choice)
4.9/5
(39)

The purpose of a(n) ____________________ is to add documentation information for users and anyone else who might need to modify the script.

(Short Answer)
4.8/5
(28)
Showing 21 - 40 of 48
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)