Select all the applications that provide access to the Command Line Interface (CLI)?
opera
Virtual Terminal
Terminal
firefox
Which environment variable contains a list of directories that is searched for commands to execute?
PATH
PS2
PS1
EXEC
Select the command that can report the location of a command:
what
where
which
A pair of single quotes ( ‘ ) will prevent the shell from interpreting any metacharacter.
A pair of double quotes ( ” ) will prevent the shell from interpreting any metacharacter.
Using a pair of back quotes ( ` ) will cause a shell to execute the back-quoted text as a command and substitute the output back into the original command.
Which of the following are glob characters?
The asterisk “*”
The question mark “?”
The dash character “-“
The square brackets “[” and “]”
The semicolon “;” can be used to separate multiple commands to be executed in order.
The double ampersand characters ( && ) are used to separate commands to be executed conditionally, where if the command to the left of the ampersands fails, then the command to the right of the ampersands will be executed.
To be able to output messages to the screen, use the echo display type print( echo, display, type, print ) command:
The ❌ command will print a list of the commands that you’ve previously executed.
To execute the same command as previously executed five commands ago, you would type:
&5
!-5
@-5
!5
The shell program interprets the commands you type into the terminal, into instructions that the Linux operating system can execute.
The acronym CLI stands for:
Command Line Interpreter
Computer Link Interpreter
Computer Line Interface
Command Line Interface
Traditional UNIX command options used a single dash, like -a; ❌ command options use two dashes like –all.
The acronym GNU stands for:
Gnu’s Not Unix
Good News Unix
Gnu’s Nearly Unix
Go Next Unit
The main purpose of using glob characters is to be able to provide a command a list of filenames.
What one character treats the character that follows it as if it was surrounded by single quotes?
#
/
%
\