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.
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.
You want to find lines in 'file.txt' that do NOT contain the word 'success'. Which command works?
Medium2What is the result of 'echo $USER'?
Medium3You need to display the contents of a file named 'config.txt' directly to your terminal screen. Which command should you use?
Easy4Which THREE of the following are valid ways to get help on a command?
Medium5Which TWO of the following regex patterns are valid for grep to match the beginning or end of a line?
Hard6Which THREE of the following tools can be used for text processing?
Easy7Which command is used to display the current working directory in the terminal?
Easy8Which TWO of the following commands can be used to redirect input from a file?
Hard9Which TWO of the following are commands to delete files or directories?
Easy10Which symbol represents the current user's home directory in the shell?
Easy11You need to change the environment variable PATH to include the directory '/opt/bin'. Which command is standard?
Medium12You want to find all occurrences of the string 'ERROR' within the 'syslog' file. Which command is most appropriate?
Easy13What is the purpose of the 'tee' command?
Medium14Which THREE of the following are common shell built-in command types?
Medium15Which TWO of the following are valid commands for displaying file contents?
Easy16You have a compressed file 'data.tar.bz2'. Which flag is needed to extract it?
Hard17Which TWO of the following signals can be used to interact with processes?
Hard18Which THREE of the following are valid ways to run commands sequentially?
Hard19You need to find files modified within the last 7 days. Which find flag is correct?
Hard20You want to execute two commands sequentially, but only if the first command succeeds. Which operator is used?
Hard21Which command removes a directory and all its contents recursively?
Easy22Which TWO of the following help manage compressed archive contents?
Hard23Which command-line shortcut allows you to autocomplete filenames and commands?
Easy24If you want to view a long text file page by page, which command is most suitable?
Medium25Which character is used to append output to an existing file without deleting its original content?
Easy26You need to set an environment variable named 'MYVAR' to 'hello' so that it is available to child processes. Which command is correct?
Medium27You 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?
Medium28Which command is used to display lines of a file that match a pattern, while ignoring case?
Easy29You need to create a compressed archive of the '/home/user/docs' directory named 'docs.tar.gz'. Which flag ensures gzip compression is applied?
Medium30What is the result of the command 'ls -la | grep "^d"'?
Medium31What does the command 'history' do?
Medium32How do you check the exit status of the last command executed?
Easy33To sort the lines of a text file numerically instead of alphabetically, which flag do you use?
Medium34Which THREE of the following represent ways to manipulate command output in a pipe?
Medium35You 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?
Hard36Which THREE of the following are valid flags for the 'tar' command?
Medium37Which THREE of the following are environment variables commonly seen in a Linux shell?
Medium38You want to search for a file named 'notes.txt' starting from the root directory. Which command is most efficient?
HardOther domains
All 010-160 exam domains
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.