ch. 7: working with Bash shell

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

true

Can you combine redirection and piping together?

\f

The ____ escape sequence represents a form feed.

wc

The ____ command counts the number of lines, words, and characters in a file.

false

Given the syntax command && command, the command on the left of the && construct is executed only if the command on the right of the && construct completed successfully.

false

When performing a pipe, do you need to have spaces around the | metacharacter?

true

You are limited to using one pipe | metacharacter on the command line to pipe information from one command to another command.

|[ A -gt B ]

The test statement ____ would be used to determine if A is numerically greater than B.

read and execute

If you have ____ permission to a shell script, you can execute the shell script like any other executable program on the system.

colon

Most configuration files on Linux systems are delimited using ____ characters.

2

The file descriptor stderr is represented by the number ____.

0

The file descriptor stdin is represented by the number ____.

env

To see a list of all exported environment and user-defined variables in the shell, you can use the ____ command.

<

You can redirect a file to the standard input of a command using the ____ metacharacter.

|

You can send the standard output of one command to another command as standard input using the ____ shell metacharacter.

true

You can use the sed command to remove unwanted lines of text.

awk

The ____ command can be used to extract, manipulate, and format text using pattern-action statements.

true

Any command that can be executed on the command line can also be placed inside any environment file.

false

To prevent a file from being cleared by the BASH shell and append output to the existing output, you can specify three > metacharacters alongside the file descriptor.

set

To see a list of the environment variables and their current values on a system, you can use the ____ command.

true

When redirecting both standard output and standard error to a file, does using the same filename for both result in a loss of data?


Kaugnay na mga set ng pag-aaral

MidTerm Review Questions FINN3120

View Set

TN Real Estate Course- Chapter 13 Study Set

View Set

Learn python the hard way Mac / linux terminal commands

View Set

NORTH CAROLINA STATUTES AND REGULATIONS PERTINENT TO CASUALTY INSURANCE

View Set

Chapter 14 Infectious and parasitic disease A00-B99

View Set