Filters
Question type

Study Flashcards

​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.

Correct Answer

verifed

verified

​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.

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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.

A) True
B) False

Correct Answer

verifed

verified

​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.

Correct Answer

verifed

verified

​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.

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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


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

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) pr
B) nl
C) tr
D) wc

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

Correct Answer

verifed

verified

​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.

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

The BASH shell has the ability to execut...

View Answer

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


A) ​count -c
B) ​pr -d
C) ​wc -l
D) ​wc -c

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

Correct Answer

verifed

verified

What number represents the stderr file descriptor?


A) 0
B) 1
C) 2
D) 3

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

Correct Answer

verifed

verified

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


A) tr
B) rt
C) ts
D) st

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

Correct Answer

verifed

verified

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


A) env
B) get
C) set
D) setenv

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

Correct Answer

verifed

verified

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?


A) ​@!
B) ​#!
C) ​//
D) ​->

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

Correct Answer

verifed

verified

​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.

Correct Answer

verifed

verified

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


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

E) C) and D)
F) All of the above

Correct Answer

verifed

verified

Showing 21 - 40 of 50

Related Exams

Show Answer