Courseiva

LFCS · topic practice

Essential Commands practice questions

Essential Commands is 20% of the LFCS and covers day-to-day Linux administration at the shell: files, text, processes, permissions, storage and networking. The exam is performance-based, so you work in a live terminal on real systems rather than answering multiple-choice questions, and each task is scored by inspecting the resulting system state.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Essential Commands

What the exam tests

What to know about Essential Commands

Candidates must navigate files, edit text, manage processes, set permissions, mount storage, and configure networking using tools like ls, grep, systemctl, chmod, mount, and ip. The critical thing is correct syntax and paths, since every command runs live and errors cost points.

Navigating and manipulating files with ls, cp, mv, rm, find and tar

Searching and editing text using grep, sed, awk and vi

Managing processes and jobs with ps, top, kill, systemctl

Handling permissions, ownership, links and basic storage with chmod, chown, mount

Watch out for

Common Essential Commands exam traps

  • ▸Using rm -rf or redirection carelessly and destroying data or config files needed by later exam tasks.
  • ▸Forgetting that chmod symbolic modes and umask interact, so new files get unexpected permissions.
  • ▸Editing with sed -i without a backup, then being unable to recover the original file contents.

Practice set

Essential Commands questions

20 questions · select your answer, then reveal the explanation

An administrator wants to ensure that a background process continues running after logout. Which command should be used to start the process?

A technician needs to display the contents of a compressed file named archive.tar.gz without extracting it. Which command should be used?

Which TWO commands can be used to create a new empty file?

A developer accidentally deleted a critical file /var/log/app.log. The system administrator knows that the file was recently backed up using a cron job that runs 'tar -czf /backup/logs.tar.gz /var/log/'. Which command should the administrator use to restore the file from the backup without extracting the entire archive?

A system administrator needs to find all files in /home that are owned by user 'alice' and have been modified in the last 7 days. The administrator then wants to compress those files into a single archive named alice_recent.tar.gz. Which of the following commands accomplishes this?

A system administrator is troubleshooting a user's report that a command 'myapp' is not found. The administrator checks the PATH variable and sees it includes /usr/local/bin. The administrator verifies that the binary 'myapp' exists in /usr/local/bin with permissions 755. However, running 'myapp' still fails with 'command not found'. What is the most likely cause?

A user with uid 1000 tries to read /etc/shadow and gets 'Permission denied'. The user is not in the shadow group. Which of the following actions would allow the user to read the file without changing the file's group or permissions?

Exhibit

Refer to the exhibit.

$ ls -l /etc/shadow
-rw-r----- 1 root shadow 1234 Jan 15 10:00 /etc/shadow
$ id
uid=1000(user1) gid=1000(user1) groups=1000(user1)
$ cat /etc/shadow
cat: /etc/shadow: Permission denied

A system administrator runs 'grep -r 'error' /var/log' and gets many false positives. They want to search only for the exact word 'error' as a whole word, case-insensitively, and display line numbers. Which command should they use?

Order the steps to mount an ext4 filesystem from an external USB drive automatically at boot.

Drag or tap steps into the slots.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 10mediummultiple choice
Read the full Essential Commands explanation →

A system administrator needs to find all files under /var/log that have been modified within the last 7 days. Which command accomplishes this task?

A system administrator needs to replace all occurrences of 'oldhost' with 'newhost' in /etc/hosts, but only on lines that contain the string 'domain'. Which sed command accomplishes this?

Which TWO commands can be used to list the contents of a tar archive without extracting it?

Question 13mediummultiple choice
Read the full Essential Commands explanation →

Refer to the exhibit. The file script.sh has permissions -rwxr-x--- and is owned by root with group 'developers'. A user named 'alice' is a member of the 'developers' group. Which command allows alice to execute the script without changing the file's group ownership?

Exhibit

-rwxr-x---  1 root developers 1234 Feb 20 10:00 script.sh

A system administrator needs to find all files in /var/log that have been modified in the last 24 hours. Which command accomplishes this?

An administrator runs 'df -h' and notices that /dev/sda1 is 95% full. The administrator needs to identify the largest files in the filesystem. Which command sequence is most efficient?

An administrator needs to find the process ID of the cron daemon. Which combination of commands is most effective?

An administrator wants to find all files larger than 100MB in the /home directory. Which two commands or command sequences achieve this? (Choose two.)

Question 18mediummultiple choice
Read the full Essential Commands explanation →

Refer to the exhibit.

A user attempts to read /etc/passwd and receives "Permission denied". What is the most likely reason?

Network Topology
-rw-rr

Refer to the exhibit.

A user attempts to create a file in /backup/snapshots/ but receives an error. What is the most likely cause?

Exhibit

/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)
/dev/sda2 on /var type ext4 (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev)
/dev/sdb1 on /backup type ext4 (ro)

Refer to the exhibit.

The /data directory needs to be resized to 15GB. What is the first step?

Exhibit

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0    20G  0 disk 
├─sda1   8:1    0   512M  0 part /boot
└─sda2   8:2    0   19.5G 0 part /
sdb      8:16   0    10G  0 disk 
└─sdb1   8:17   0    10G  0 part /data

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Essential Commands sessions

Start a Essential Commands only practice session

Every question in these sessions is drawn from the Essential Commands domain — nothing else.

Related practice questions

Related LFCS topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the LFCS exam test about Essential Commands?
Candidates must navigate files, edit text, manage processes, set permissions, mount storage, and configure networking using tools like ls, grep, systemctl, chmod, mount, and ip. The critical thing is correct syntax and paths, since every command runs live and errors cost points.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Essential Commands questions in a focused session?
Yes — the session launcher on this page draws every question from the Essential Commands domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other LFCS topics?
Use the topic links above to move to related areas, or go back to the LFCS question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the LFCS exam covers. They are not copied from any real exam or dump site.