Chapter 7 - Working with the Bash Shell Flashcards

1
Q

Used to read Standard Input from a user into a variable.

A

read command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The process of copying a Git repository from another computer.

A

cloning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A special syntax used in a shell script to alter the flow of the program based on the outcome of a command or contents of a variable. Common decision constructs include if, case, &&, and ||.

A

decision construct

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Used to perform version control operations using Git.

A

git command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Used to view previously executed commands within a shell.

A

history command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A common open source version control program primarily used for software development.

A

Git

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Used to create special variables that are shortcuts to longer command strings.

A

alias command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A number that is returned by each command on a Linux system to indicate successful (0) or unsuccessful (1-255) execution. It can be used to provide the true/false functionality within shell script constructs.

A

exit status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A file that contains multiple functions for use in other programs and shell scripts.

A

function library

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A syntax used to perform multiline input redirection.

A

here document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The variables that are created by the user and are not used by the system. These variables are typically exported to subshells.

A

user-defined variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A file descriptor that represents the desired output from a command.

A

Standard Output (stdout)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Used to execute the contents of a shell script within the current shell, instead of using a subshell.

A

dot ( . ) command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Used to display a list of exported variables and functions present in the current shell.

A

printenv command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A special syntax used in a shell script to execute commands repetitively. Common decision constructs include for and while.

A

loop construct

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Used to remove an alias from shell memory.

A

unalias command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

A special variable that can accept positional parameters and is used to store commands and constructs for later execution.

A

function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Used to execute the contents of a shell script within the current shell, instead of using a subshell.

A

source command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The name of a variable.

A

variable identifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

A command that can take from Standard Input and send to Standard Output. In other words, a _______ is a command that can exist in the middle of a pipe.

A

filter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

A shell metacharacter used to pipe Standard Output from one command to the Standard Input of another command.

22
Q

The first line in a shell script, which defines the shell that will be used to interpret the commands in the script file.

23
Q

Used to send variables to subshells.

A

export command

24
Q

The numeric labels used to define command input and command output.

A

file descriptors

25
The variables that store information commonly accessed by the system or programs executing on the system; together, these variables form the user environment.
environment variables
26
The default branch in a Git repo
master branch
27
A snapshot of files that are tracked by Git for version control.
commit
28
A syntax used to test a certain condition and generate a True/False value.
test statement
29
The files used immediately after login to execute commands; they are typically used to load variables into memory.
environment files
30
The character combinations that have special meaning inside the echo command. They are prefixed by the \ character.
escape sequences
31
A shell metacharacter used to redirect Standard Output and Standard Error to a file.
>
32
Used to display a list of exported variables and functions present in the current shell.
env command
33
A shell metacharacter used to obtain Standard Input from a file.
<
34
An argument to a shell script or function.
positional parameter
35
Used to display or echo output to the terminal screen. It can use escape sequences.
echo command
36
A system that keeps track of changes made to files by users.
version control
37
Used to remove a variable or function from shell memory.
unset command
38
A file descriptor that represents any error messages generated by a command.
Standard Error (stderr)
39
Used to display a list of variables and functions within the shell.
set command
40
A file descriptor that represents information input to a command during execution.
Standard Input (stdin)
41
Used to generate a list of sequential numbers.
seq command
42
An area of memory used to store information. ___________ are created from entries in environment files when the shell is first created after login, and are destroyed when the shell is destroyed upon logout
variable
43
The process of changing the default locations of Standard Input, Standard Output, and Standard Error.
redirection
44
A shell started by the current shell.
subshell
45
The process of adding files to a Git index.
staging
46
An argument to a shell script or function.
positional parameter
47
A string of commands connected by | metacharacters.
pipe
48
A variable that is altered by loop constructs to ensure that commands are not executed indefinitely
counter variable
49
Used to transform or change characters received from Standard Input.
tr command
50
A collection of files and commits that are used by Git. _________________ often represent software development projects.
Git repository
51
A separate section within a Git repository used to track changes made to files.
branch
52
Used to perform mathematical operations.
expr command