Courseiva

010-160 · domain

The Power OF The Command Line

Practise LPI Linux Essentials (010-160, v1.6) (010-160) The Power OF The Command Line practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

38 questions12 easy16 medium10 hard

Focused practice

Practice The Power OF The Command Line questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about The Power OF The Command Line

The Power OF The Command Line questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common The Power OF The Command Line exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Question index

All The Power OF The Command Line questions (38)

Click any question to see the full explanation, or start a practice session above.

1

You want to find lines in 'file.txt' that do NOT contain the word 'success'. Which command works?

Medium
2

What is the result of 'echo $USER'?

Medium
3

You need to display the contents of a file named 'config.txt' directly to your terminal screen. Which command should you use?

Easy
4

Which THREE of the following are valid ways to get help on a command?

Medium
5

Which TWO of the following regex patterns are valid for grep to match the beginning or end of a line?

Hard
6

Which THREE of the following tools can be used for text processing?

Easy
7

Which command is used to display the current working directory in the terminal?

Easy
8

Which TWO of the following commands can be used to redirect input from a file?

Hard
9

Which TWO of the following are commands to delete files or directories?

Easy
10

Which symbol represents the current user's home directory in the shell?

Easy
11

You need to change the environment variable PATH to include the directory '/opt/bin'. Which command is standard?

Medium
12

You want to find all occurrences of the string 'ERROR' within the 'syslog' file. Which command is most appropriate?

Easy
13

What is the purpose of the 'tee' command?

Medium
14

Which THREE of the following are common shell built-in command types?

Medium
15

Which TWO of the following are valid commands for displaying file contents?

Easy
16

You have a compressed file 'data.tar.bz2'. Which flag is needed to extract it?

Hard
17

Which TWO of the following signals can be used to interact with processes?

Hard
18

Which THREE of the following are valid ways to run commands sequentially?

Hard
19

You need to find files modified within the last 7 days. Which find flag is correct?

Hard
20

You want to execute two commands sequentially, but only if the first command succeeds. Which operator is used?

Hard
21

Which command removes a directory and all its contents recursively?

Easy
22

Which TWO of the following help manage compressed archive contents?

Hard
23

Which command-line shortcut allows you to autocomplete filenames and commands?

Easy
24

If you want to view a long text file page by page, which command is most suitable?

Medium
25

Which character is used to append output to an existing file without deleting its original content?

Easy
26

You need to set an environment variable named 'MYVAR' to 'hello' so that it is available to child processes. Which command is correct?

Medium
27

You wish to send the output of the 'ls -l' command directly into a file named 'dirlist.txt', overwriting any existing content. Which operator should you use?

Medium
28

Which command is used to display lines of a file that match a pattern, while ignoring case?

Easy
29

You need to create a compressed archive of the '/home/user/docs' directory named 'docs.tar.gz'. Which flag ensures gzip compression is applied?

Medium
30

What is the result of the command 'ls -la | grep "^d"'?

Medium
31

What does the command 'history' do?

Medium
32

How do you check the exit status of the last command executed?

Easy
33

To sort the lines of a text file numerically instead of alphabetically, which flag do you use?

Medium
34

Which THREE of the following represent ways to manipulate command output in a pipe?

Medium
35

You want to replace every occurrence of 'old' with 'new' in the file 'data.txt' and view the result in the terminal. Which command achieves this?

Hard
36

Which THREE of the following are valid flags for the 'tar' command?

Medium
37

Which THREE of the following are environment variables commonly seen in a Linux shell?

Medium
38

You want to search for a file named 'notes.txt' starting from the root directory. Which command is most efficient?

Hard

Frequently asked questions

What does the The Power OF The Command Line domain cover on the 010-160 exam?
The Power OF The Command Line questions test whether you can apply the concept in context, not just recognise a definition.
How many questions are in this domain?
This page lists all 38 The Power OF The Command Line questions in the 010-160 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only The Power OF The Command Line questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
LPI Linux Essentials (010-160, v1.6) (010-160) The Power OF The Command Line Practice Questions