LPIC-1 Administrative Tasks Practice Question
An administrator needs to find all files in the /var/log directory that have been modified in the last 24 hours. Which command should be used?
⚠ Common exam trap
Many exam-takers confuse `-ctime` (inode change time) with `-mtime` (modification time), or mistakenly think `-atime` (access time) is relevant for modification, leading them to pick options that do not match the requirement for content modification.
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
✓
find /var/log -mtime 0
The `find` command with `-mtime 0` searches for files whose data modification time is within the last 24 hours. The `-mtime` option uses a 24-hour period, and a value of 0 means modified less than 24 hours ago, which matches the requirement to find files modified in the last 24 hours in /var/log.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
find /var/log -ctime 0
Why it's wrong here
ctime is for status change, not modification.
- ✓
find /var/log -mtime 0
Why this is correct
mtime 0 matches files modified within the last 24 hours.
- ✗
find /var/log -atime 0
Why it's wrong here
atime is for access time.
- ✗
find /var/log -mmin 1440
Why it's wrong here
mmin expects minutes; 1440 minutes is correct but -mtime is more common.
Go deeper
Related to this question
About these practice questions
Courseiva writes every LPIC-1 question from scratch — 527 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LPIC-1 practice question is part of Courseiva's free LPI 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 LPIC-1 exam.