Cyberlium

Linux › Module 5 › Lesson 5

BeginnerModule 5Lesson 5/5

Quiz — Pipes & Search

Quiz on pipes, redirection, grep, find, and log analysis

10 min+24 XP10 quiz
Module progress5 of 5

Opening

Pipes & Search — apply the analyst toolkit

Ten APPLY questions on stdin/stdout/stderr, | > >> 2>, grep flags, head/tail/wc, find, PATH, and log hunts. Think like someone who must not destroy the only copy of a log. Next up: processes, packages, and bash.

Knowledge Check

1

APPLY: echo hello > notes.txt on a file that already held a paragraph. What is true?

Multiple choice

Knowledge Check

2

APPLY: Why is cat huge.log | grep "Failed password" | wc -l a better first move than opening huge.log in an editor?

Multiple choice

Knowledge Check

3

APPLY: You need case-insensitive matches with line numbers for fail or error. Which grep shape is closest?

Multiple choice

Knowledge Check

4

APPLY: tail -f auth.log is best used when:

Multiple choice

Knowledge Check

5

APPLY: find "$HOME/cyberlium-lab" -type f -name "*.log" -mtime -1 returns files that are:

Multiple choice

Knowledge Check

6

APPLY: command 2> errors.txt redirects which stream?

Multiple choice

Knowledge Check

7

APPLY: True or False: grep "Failed password" auth.log > auth.log is a safe way to keep only failures in the same file.

True or False

Knowledge Check

8

APPLY: Which habits protect you when hunting logs and binaries? (Select 2)

Select all that apply

Knowledge Check

9

APPLY: locate is fast but find is often more trustworthy for a file you just created because:

Multiple choice

Knowledge Check

10

APPLY: After pipes and search, the next Linux Fundamentals module starts with:

Multiple choice

← Previous

Answer all 10 knowledge checks to continue. (0/10 answered)