Question 465 of 513
Operation of Running SystemsmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to run echo 1 > /proc/sys/vm/drop_caches, which immediately frees up file cache without affecting running processes. This works because writing 1 to that file instructs the kernel to release pagecache—the memory used for caching disk reads—while leaving process memory and swap untouched. On the Linux Foundation Certified System Administrator LFCS exam, this scenario tests your understanding of memory management under pressure: when free -m shows high cache usage but low available memory, the trap is to think you need to kill processes or restart services. Instead, the safe, non-destructive operation is to use drop_caches, which reclaims memory for applications without disruption. Remember the mnemonic: “One to free the cache, no processes to smash.”

LFCS Operation of Running Systems Practice Question

This LFCS practice question tests your understanding of operation of running systems. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A Linux system reports 'Out of memory' errors frequently. The administrator checks memory usage with 'free -m' and notices that most memory is used by file cache. Which command can the administrator run to immediately free up the cache without affecting running processes?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "which command"

    Why it matters: Tests specific CLI syntax. Recall the exact command and its required context — near-synonyms and partial matches are common distractors.

  • Clue: "immediately / without restart"

    Why it matters: Time or reboot constraint — the correct answer must take effect right away without requiring a reboot or reload.

Question 1mediummultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

echo 1 > /proc/sys/vm/drop_caches

Option C is correct because writing 1 to /proc/sys/vm/drop_caches instructs the kernel to free pagecache (file cache) without terminating any processes. This is a safe, non-destructive operation that reclaims memory used for caching disk I/O, which is exactly what the administrator needs when 'free -m' shows most memory consumed by cache.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • sysctl vm.drop_caches=1

    Why it's wrong here

    sysctl expects a key=value pair but the correct way is to write to the proc file directly.

  • swapoff -a

    Why it's wrong here

    Disabling swap does not free cache and may cause system instability.

  • echo 1 > /proc/sys/vm/drop_caches

    Why this is correct

    Writing 1 to drop_caches frees pagecache.

    Clue confirmation

    The clue words "which command", "immediately / without restart" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • kill -9 $(pidof some_process)

    Why it's wrong here

    Killing processes is not appropriate; it would stop applications.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates confuse 'sysctl' with direct procfs writes, or think 'swapoff -a' frees memory, when in fact it only disables swap and does not reclaim file cache.

Detailed technical explanation

How to think about this question

The /proc/sys/vm/drop_caches interface accepts values 1 (free pagecache), 2 (free dentries and inodes), and 3 (free all). Writing 1 only clears clean cache pages that are immediately reclaimable; dirty pages must be written back first (via 'sync') to be freed. In real-world scenarios, this is useful before benchmarking or after a large file operation, but the kernel will automatically reclaim cache under memory pressure, so manual intervention is rarely needed.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related LFCS practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free LFCS practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this LFCS question test?

Operation of Running Systems — This question tests Operation of Running Systems — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: echo 1 > /proc/sys/vm/drop_caches — Option C is correct because writing 1 to /proc/sys/vm/drop_caches instructs the kernel to free pagecache (file cache) without terminating any processes. This is a safe, non-destructive operation that reclaims memory used for caching disk I/O, which is exactly what the administrator needs when 'free -m' shows most memory consumed by cache.

What should I do if I get this LFCS question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "which command", "immediately / without restart". Tests specific CLI syntax. Recall the exact command and its required context — near-synonyms and partial matches are common distractors.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More LFCS practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This LFCS practice question is part of Courseiva's free Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LFCS exam.