Exam 7: Working With the Bash Shell

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

What command can be used to replace characters in a file sent via Standard Input?

(Multiple Choice)
4.7/5
(29)

​Match each correct item with the statement below.​ a.​counter variable b.decision construct​ c.​environment variables d.​file descriptors e.​hashpling f.loop construct​ g.​redirection h.Standard Error (stderr)​ i.​Standard Input (stdin) j.Standard Output (stdout) -​The first line in a shell script, which defines the shell that will be used to interpret the commands in the script file.

(Short Answer)
4.9/5
(27)

To prevent a file from being cleared by the BASH shell and append output to the existing output, you can specify three > metacharacters alongside the file descriptor.

(True/False)
4.7/5
(29)

Which command can be used to count the number lines, words, and characters in a file?

(Multiple Choice)
4.9/5
(27)

What character combination at the start of a shell script are referred to as a hashpling, and allow for the specification of the shell that interprets the contents of the script?

(Multiple Choice)
4.9/5
(28)

Select the two commands below that will provide the number of lines in a file, and the number of characters in a file, respectively:​

(Multiple Choice)
4.9/5
(39)

​Match each correct item with the statement below.​ a.​counter variable b.decision construct​ c.​environment variables d.​file descriptors e.​hashpling f.loop construct​ g.​redirection h.Standard Error (stderr)​ i.​Standard Input (stdin) j.Standard Output (stdout) -​A special construct used in a shell script to execute commands repetitively. Common decision constructs include for and while.

(Short Answer)
4.9/5
(36)

In order to redirect a file to the standard input of a command, what metacharacter should be used?

(Multiple Choice)
4.8/5
(29)

You are limited to using one pipe | metacharacter on the command line to pipe information from one command to another command.

(True/False)
4.7/5
(32)

Most commands that are run by the shell are run in a separate ____________________, which is created by the current shell.

(Short Answer)
4.9/5
(32)

​Match each correct item with the statement below.​ a.​counter variable b.decision construct​ c.​environment variables d.​file descriptors e.​hashpling f.loop construct​ g.​redirection h.Standard Error (stderr)​ i.​Standard Input (stdin) j.Standard Output (stdout) -​A file descriptor that represents information input to a command during execution.

(Short Answer)
4.9/5
(35)

​Match each correct item with the statement below.​ a.​counter variable b.decision construct​ c.​environment variables d.​file descriptors e.​hashpling f.loop construct​ g.​redirection h.Standard Error (stderr)​ i.​Standard Input (stdin) j.Standard Output (stdout) -​A file descriptor that represents any error messages generated by a command.

(Short Answer)
4.8/5
(38)

You can use the sed command to remove unwanted lines of text.

(True/False)
4.8/5
(37)

What number represents the stderr file descriptor?

(Multiple Choice)
4.8/5
(36)

​Match each correct item with the statement below.​ a.​counter variable b.decision construct​ c.​environment variables d.​file descriptors e.​hashpling f.loop construct​ g.​redirection h.Standard Error (stderr)​ i.​Standard Input (stdin) j.Standard Output (stdout) -​A variable that is altered by loop constructs to ensure that commands are not executed indefinitely.

(Short Answer)
4.9/5
(41)

​Match each correct item with the statement below.​ a.​counter variable b.decision construct​ c.​environment variables d.​file descriptors e.​hashpling f.loop construct​ g.​redirection h.Standard Error (stderr)​ i.​Standard Input (stdin) j.Standard Output (stdout) -​The numeric labels used to define command input and command output.

(Short Answer)
4.9/5
(37)

The ____________________ command takes user input from stdin and places it in a variable specified by an argument.

(Short Answer)
4.9/5
(27)

Detail shell scripts and explain how they are used and executed.

(Essay)
4.9/5
(41)

The environment variables that are set by default and their current values can be viewed with what command?

(Multiple Choice)
4.8/5
(33)

Select the metacharacter that can be used to send the standard output of one command to another command as standard input:

(Multiple Choice)
4.9/5
(42)
Showing 21 - 40 of 50
close modal

Filters

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