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.

A

|

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.

A

hashpling

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
Q

The variables that store information commonly accessed by the system or programs executing on the system; together, these variables form the user environment.

A

environment variables

26
Q

The default branch in a Git repo

A

master branch

27
Q

A snapshot of files that are tracked by Git for version control.

A

commit

28
Q

A syntax used to test a certain condition and generate a True/False value.

A

test statement

29
Q

The files used immediately after login to execute commands; they are typically used to load variables into memory.

A

environment files

30
Q

The character combinations that have special meaning inside the echo command. They are prefixed by the \ character.

A

escape sequences

31
Q

A shell metacharacter used to redirect Standard Output and Standard Error to a file.

A

>

32
Q

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

A

env command

33
Q

A shell metacharacter used to obtain Standard Input from a file.

A

<

34
Q

An argument to a shell script or function.

A

positional parameter

35
Q

Used to display or echo output to the terminal screen. It can use escape sequences.

A

echo command

36
Q

A system that keeps track of changes made to files by users.

A

version control

37
Q

Used to remove a variable or function from shell memory.

A

unset command

38
Q

A file descriptor that represents any error messages generated by a command.

A

Standard Error (stderr)

39
Q

Used to display a list of variables and functions within the shell.

A

set command

40
Q

A file descriptor that represents information input to a command during execution.

A

Standard Input (stdin)

41
Q

Used to generate a list of sequential numbers.

A

seq command

42
Q

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

A

variable

43
Q

The process of changing the default locations of Standard Input, Standard Output, and Standard Error.

A

redirection

44
Q

A shell started by the current shell.

A

subshell

45
Q

The process of adding files to a Git index.

A

staging

46
Q

An argument to a shell script or function.

A

positional parameter

47
Q

A string of commands connected by | metacharacters.

A

pipe

48
Q

A variable that is altered by loop constructs to ensure that commands are not executed indefinitely

A

counter variable

49
Q

Used to transform or change characters received from Standard Input.

A

tr command

50
Q

A collection of files and commits that are used by Git. _________________ often represent software development projects.

A

Git repository

51
Q

A separate section within a Git repository used to track changes made to files.

A

branch

52
Q

Used to perform mathematical operations.

A

expr command