Bird
0
0

Why does Linux consider reading files constant time after the first read, despite file size?

hard📝 Conceptual Q10 of 15
Linux CLI - Viewing and Editing Files
Why does Linux consider reading files constant time after the first read, despite file size?
ABecause file permissions restrict read speed
BBecause Linux compresses files automatically
CBecause the OS uses page cache to store file data in memory
DBecause files are stored in fixed-size blocks on disk
Step-by-Step Solution
Solution:
  1. Step 1: Understand OS page cache function

    Linux stores recently read file data in RAM using page cache.
  2. Step 2: Explain constant time reading

    Subsequent reads access RAM, which is much faster than disk, making read time appear constant.
  3. Final Answer:

    Because the OS uses page cache to store file data in memory -> Option C
  4. Quick Check:

    Page cache enables constant time reads [OK]
Quick Trick: Page cache in RAM makes reads fast after first time [OK]
Common Mistakes:
  • Thinking compression affects read time
  • Confusing block size with read speed
  • Believing permissions affect speed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes