COMP3060 Linux Exam (Chapter 8)

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

...send the output of one command to another

A pipe allows you to... 8.3

True

A successful command will print output to STDOUT. 8.4.2

STDRR

Channel 2 is: - 8.4.5

True

The command echo "text" > file.txt will create file.txt if it does not already exist. 8.4.4

False

The command echo "text" > file.txt will not overwrite file.txt if it already exists. - 8.4.4

True

The command echo "text" >> file.txt will not overwrite file.txt if it already exists. 8.4.4

...can be used to filter lines in a file or the output of another command based on matching a pattern.

The grep command... - 8.11

...will display all the lines in a file containing the specified Regular Expression.

The grep command... - 8.11

nl

Which command can be used to print line numbers? nl - 8.3

sort cat list.file | sort

Which command(s) can be used to sort the lines of list.file alphabetically and display it on the screen? -8.8

find

Which of the following commands scans the file to determine file locations? 8.5

egrep 'start|end' file.txt

Which of the following commands will display lines that contain either start or end? - 8.13

grep ^start file.txt

Which of the following commands will display only lines that begin with start? - 8.12.4

grep ^test file.txt

Which of the following commands will display only lines that begin with test? - 8.13

-f

Which option for the cut command is used to specify the field? - 8.10

-w

Which option for the wc command will print the number of lines in a file? 8.9


Conjuntos de estudio relacionados

Com Theory - Social Comparison Theory

View Set

Dissection of the Crayfish Analysis Questions

View Set

Physics Unit 7 & 8 Concept Quizzes

View Set

Assessment: Core 1 Simulation Exam

View Set

Chapter 12 Engine Repair: Upper End Theory and Service

View Set