Linux Operating System: A Complete Linux Guide for Beginners - Printing Contents of Files

Linux Operating System: A Complete Linux Guide for Beginners - Printing Contents of Files

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary function of the cat command?

To display the contents of a file

To rename files

To edit files

To delete files

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you append data to a file using the echo command?

By using two greater than signs

By using a single greater than sign

By using a pipe symbol

By using a less than sign

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command allows you to scroll through a document using the spacebar?

tac

more

echo

cat

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a key difference between the more and less commands?

less allows backward navigation

less does not display file content

more allows editing of files

more adjusts terminal size

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the head command do by default?

Deletes the first 10 lines of a file

Reverses the content of a file

Displays the first 10 lines of a file

Displays the last 10 lines of a file

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you view the last 15 lines of a file using the tail command?

tail -n 15

tail 15

tail -15

tail last 15

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the tac command?

To search for a string in a file

To reverse the content of a file

To append data to a file

To display the first 10 lines of a file