Skip to content

Linux Administration Practice Exam

Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.

📝 50 questions · ⏱ 60 minutes · 🎯 Pass mark 70% · 🆓 Free, no signup

Exam details

  • 50 questions drawn from 110 cards
  • Countdown timer — auto-submits when time runs out
  • Pass mark 70% (real certification threshold)
  • Full review of wrong answers at the end
  • No signup required — save your score with a free account

Sample Questions

5 shown

What does the ls command do in Linux?

Show ▼

The ls command lists directory contents. Common flags:
-l long format with permissions, owner, size, date
-a show hidden files (dotfiles)
-h human-readable sizes
-R recursive listing
-t sort by modification time

How does grep search for patterns in files?

Show ▼

grep searches text using patterns.
Usage: grep [options] pattern [file...]
Key flags:

  • -i case-insensitive
  • -r recursive search
  • -n show line numbers
  • -v invert match
  • -E extended regex (same as egrep)

How do you use the find command to locate files?

Show ▼

find searches the directory tree.
Examples:
find /home -name "*.txt" — find by name
find . -type f -mtime -7 — files modified in last 7 days
find / -size +100M — files larger than 100MB
find . -perm 755 — find by permissions
find . -name "*.log" -exec rm {} \; — execute command on results

What is awk and how is it used for text processing?

Show ▼

awk is a powerful text-processing language that operates on fields and records.
Examples:
awk '{print $1, $3}' file — print columns 1 and 3
awk -F: '{print $1}' /etc/passwd — set delimiter to colon
awk '$3 > 100 {print $0}' data.txt — conditional filtering
Built-in variables: NR (record number), NF (number of fields), FS (field separator)

How does sed perform text substitution?

Show ▼

sed (stream editor) transforms text in a pipeline.
Common usage:
sed 's/old/new/' file — replace first occurrence per line
sed 's/old/new/g' file — replace all occurrences
sed -i 's/old/new/g' file — edit file in-place
sed -n '5,10p' file — print lines 5–10
sed '/pattern/d' file — delete matching lines

🎯 Take the Linux Administration Practice Exam