linux+ chapter 7 quiz questions

¡Supera tus tareas y exámenes ahora con Quizwiz!

​What operator below is known as the NOT operator?

!

In order to redirect a file to the standard input of a command, what metacharacter should be used?

"<"

What character combination at the start of a shell script are referred to as a hashpling, and allow for the specification of the shell that interprets the contents of the script?

#!

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

/etc/profile

What number represents the stdin file descriptor?

0

Select the test statement that can be used to determine if A is numerically greater than B:

[ A -gt B ]

Select the escape sequence that is used for a form feed:

\f

Select the escape sequence that starts a new line when used with echo:

\n

The ability to extract, manipulate, and format text using pattern action statements belongs to which command below?

awk

What command can be used to replace characters in a file sent via Standard Input?

tr

Which command can be used to count the number lines, words, and characters in a file?

wc

Select the metacharacter that can be used to send the standard output of one command to another command as standard input:

|

What character is used to delimit most Linux configuration files?

colon

The default BASH shell prompt is set by an environment variable. What command can be used to view this variable?

echo $PS1

A list of all exported environment and user-defined variables in a shell can be viewed with what command below?

env

​What construct is intended for use in processing a list of objects, such as files, directories, users, printers, and so on?

for

What permissions are required to execute a shell script in a manner similar to any other executable program on the system?

read and execute

The environment variables that are set by default and their current values can be viewed with what command?

set

What number represents the stderr file descriptor?

2

The standard output and standard error from a terminal screen within the BASH shell can be redirected to a file on the filesystem using what shell metacharacter, followed by the absolute or relative pathname of the file?

>


Conjuntos de estudio relacionados

Chapter 31: Orthopaedic Injuries- Scenarios

View Set

PSCS 3111 - Midterm Exam (Chapters 1-6)

View Set