Search Header Logo

Sec. 7: Searching and Extracting Data from Files and Archiving

Authored by Renato Biz Martins

Instructional Technology

University

Used 1+ times

Sec. 7: Searching and Extracting Data from Files and Archiving
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pipes or command-pipelines help users mash-up two or more commands at the same time and run them consecutively.

True

False

Answer explanation

True, by using a command pipe (|), a user can enter two or more commands in a series or chain.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The grep command allows you to:

Rename a file or directory

Search for files that contain a specified string

Repeat the previous command

Answer explanation

Grep is used to search for a specific string or regular expression within a file.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which redirection operator accepts text on the following lines as standard input

<>

>>

<<

Answer explanation

The << operator allows the user to accept text on the following lines as standard input.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The two forms of commonly used regular expressions: basic and complicated.

True

False

Answer explanation

There are also two types of regular expressions: basic and extended.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The regular expression b[aeiou]g will match the words:

bag, beg, big

bag, beg, big, bog, bug

baeioug

Answer explanation

The regular expression b[aeiou]g will search for any three letter words that begin with b, end with g, and have a vowel as the second letter.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the redirection operator <> do?

Accepts text on the following lines as standard input.

Causes the specified file to be used for both standard input and standard output.

Sends the contents of the specified file to be used as standard input.

Answer explanation

The <> redirection operator will let the file be used for input and output.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Two types of output messages

Manual and Automatic messages

Standard Output and Input messages

Standard Output and Standard Error messages

Answer explanation

Standard Output and Standard Error messages are the two different types of output messages within Linux.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?