Filters
Question type

Study Flashcards

To see a list of all exported environment and user-defined variables in the shell, you can use the ____ command.


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

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

Correct Answer

verifed

verified

Match each term with the correct statement below. -Labels representing command input and output.


A) hashpling
B) tee
C) environment variables
D) stdin
E) stderr
F) decision construct
G) shell scripts
H) stdout
I) file descriptors

J) B) and I)
K) A) and E)

Correct Answer

verifed

verified

The file descriptor stdin is represented by the number ____.


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

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

Correct Answer

verifed

verified

The ____ command can be used to replace characters in a file sent via Standard Input.


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

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

Correct Answer

verifed

verified

The BASH shell assumes stdout in the absence of a numeric file descriptor. _________________________

A) True
B) False

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

What are file descriptors? What are the three file descriptors are available to each command that can be manipulated by the BASH shell, and what is the purpose of each?

Correct Answer

verifed

verified

Command input and output are represented...

View Answer

Match each term with the correct statement below. -A filter command that takes information from standard input and sends that information to a file, as well as to standard output.


A) hashpling
B) tee
C) environment variables
D) stdin
E) stderr
F) decision construct
G) shell scripts
H) stdout
I) file descriptors

J) E) and I)
K) B) and H)

Correct Answer

verifed

verified

Match each term with the correct statement below. -Shell variables that are typically set by the system and contain information that the system and programs access regularly.


A) hashpling
B) tee
C) environment variables
D) stdin
E) stderr
F) decision construct
G) shell scripts
H) stdout
I) file descriptors

J) F) and G)
K) F) and H)

Correct Answer

verifed

verified

You can send the standard output of one command to another command as standard input using the ____ shell metacharacter.


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

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

Correct Answer

verifed

verified

The file descriptor stderr is represented by the number ____.


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

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

Correct Answer

verifed

verified

The ____ environment file is always executed immediately after login for all users on the system, and sets most environment variables, such as HOME and PATH.


A) ~/.bash_profile
B) ~/.bash_login
C) /etc/profile
D) ~/.profile

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

Correct Answer

verifed

verified

Aliases are shortcuts to commands stored in special variables that can be created and viewed using the alias command. _________________________

A) True
B) False

Correct Answer

verifed

verified

You can use the BASH shell to redirect standard output and standard error from the terminal screen to a file on the filesystem using the ____ shell metacharacter followed by the absolute or relative pathname of the file.


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

E) None of the above
F) All of the above

Correct Answer

verifed

verified

The ENV environment variable represents the location of the BASH run-time configuration file. _________________________

A) True
B) False

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

To see a list of the environment variables and their current values on a system, you can use the ____ command.


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

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

Correct Answer

verifed

verified

Match each term with the correct statement below. -The normal output of a command.


A) hashpling
B) tee
C) environment variables
D) stdin
E) stderr
F) decision construct
G) shell scripts
H) stdout
I) file descriptors

J) A) and C)
K) A) and B)

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

Any command that can be executed on the command line can also be placed inside any environment file.

A) True
B) False

Correct Answer

verifed

verified

Showing 21 - 40 of 45

Related Exams

Show Answer