Shells
Profiles
History
Environment Variables
Manipulating Files and Data
100

A Command Interpreter processes these, when they are entered by users.

What are shell commands? What are commands?

100
This file is processed for all users' interactive shells by default.

What is /etc/profile?

100
Use these keys on the keyboard to scroll through recently-entered commands one at a time.

What are the up and down arrow keys?

100

System-wide default environment variable settings are found in this file.

What is /etc/environment?

100

This command can break up a raw output line from another command into fields and filter the fields that it outputs.

What is cut?

200

Bash, Korn, and Fish are examples.

What is a shell?

200

Because we want PATH to be defined upon login, and we want it to be accessible to all subsequent non-login shells, we usually code our PATH overrides in this file.

What is .profile?

200

This environment variable controls the number of commands to be saved in the command history.

What is the HISTSIZE variable?

200

To get the value of a previously-set environment variable, precede the variable name with this character.

What is the dollar sign?

200

This command can filter the lines returned from another command by matching the content of each line with a regular expression.

What is grep?

300

When we want a subshell to have access to an environment variable we have set in our shell, we need to do this to the variable before starting the subshell.

What is export? What is exporting?

300
Using Bash, when a login shell is started, if the .bash_profile file exists then these two files are not processed.

What are .bash_login and .profile?

300

To locate a previously-issued command in the command history and open it in a text editor, we use this command.

What is fc? What is fix command?

300

To set an environment variable to a value that contains embedded spaces, enclose the value in these.

What are quotes, quotation marks, or apostrophes?

300

This command can apply edits to each line of an input file and output the edited file.

What is sed?

400
Shell commands that are not built into the command interpreter are called this.

What are external commands?

400

A subshell that does not process input from the user is called this.

What is a non-interactive shell?

400

The HISTCONTROL entry ignoreboth is shorthand for these two values.

What are ignorespaces and ignoredups?

400

The absolute path of the current user's home directory is stored in this environment variable, by convention.

What is HOME?

400

This command can string multiple files together end to end to form a single output file.

What is cat?

500

The process whereby the command interpreter matches a regular expression against filenames and passes the expanded filenames to the underlying command.

What is filename globbing? What is globbing?

500

Because this file is invoked for non-login interactive shells, people usually code settings that pertain to the display device here.

What is ~./bashrc?

500

To eliminate duplicate entries from the command history, we use this environment variable setting.

What is HISTCONTROL=erasedups

500

A reference to an environment variable prefixed with a dollar sign, when enclosed in quotation marks rather than apostrophes, will return this.

What is the variable's value? 

500

This file can apply the output of diff to an original file, resulting in an output file with the differences resolved.

What is patch?