20+ practice questions focused on Linux Commands and File Permissions — one of the most tested topics on the CompTIA A+ Core 2 220-1202 exam. Each question includes a detailed explanation so you learn why the right answer is correct.
Start Linux Commands and File Permissions PracticeA malicious script is suspected to have changed permissions on critical system files. The administrator needs to restore the /etc/passwd file to its default permissions, which are 644. The file is currently 777. Which command will set the correct permissions?
Explanation: The correct answer is A because chmod 644 /etc/passwd sets the permissions to rw-r--r--, which is the standard for /etc/passwd. This removes the world-writable and executable bits.
A system administrator needs to find all files in /var/log that have been modified in the last 24 hours to check for recent activity. Which command accomplishes this?
Explanation: The correct answer is A because find /var/log -mtime -1 finds files modified less than 1 day ago. The -mtime flag with a negative number means modified within the last n days.
A helpdesk technician is assisting a user who is unable to find a file named 'notes.txt' they saved earlier. The user is in their home directory. Which command will search the entire filesystem for this file?
Explanation: The correct answer is D because find / -name notes.txt searches the entire filesystem starting from root (/) for a file with that exact name. The -name flag is case-sensitive, which is appropriate here.
A software deployment script fails because it cannot write to the /opt/app directory. The directory currently has permissions drwxr-xr-x and is owned by root. The script runs as a non-root user. Which command would allow the script to write files without compromising security more than necessary?
Explanation: The correct answer is A because chmod o+w /opt/app adds write permission for 'others' (the non-root user), which is the minimal change needed. The script runs as a non-root user, so this grants write access without affecting group permissions.
During a security audit, a Linux server is found to have a configuration file that is world-writable. The file /etc/app/config.cfg must only be readable and writable by the root user. Which command should the administrator run?
Explanation: The correct answer is C because chmod 600 sets owner read/write and removes all permissions for group and others. This matches the requirement that only root can read and write the file.
+15 more Linux Commands and File Permissions questions available
Practice all Linux Commands and File Permissions questions1. Baseline your knowledge
Start with 10 questions to gauge your current understanding of Linux Commands and File Permissions. This tells you whether you need a concept refresher or just practice.
2. Review every explanation
For each question — right or wrong — read the full explanation. Understanding why an answer is correct is more valuable than knowing the answer itself.
3. Focus on exam traps
Linux Commands and File Permissions questions on the 220-1202 frequently use trap wording. Look for subtle differences in answers that test your precision, not just general knowledge.
4. Reach 80% consistently
Do repeated sessions until you score 80%+ three times in a row. Then move to mixed-mode practice to test cross-topic recall under realistic conditions.
The exact number varies per candidate. Linux Commands and File Permissions is tested as part of the CompTIA A+ Core 2 220-1202 blueprint. Practicing with targeted Linux Commands and File Permissions questions ensures you can handle any format or difficulty that appears.
Yes. Courseiva provides free 220-1202 practice questions across all exam topics and domains. The platform includes topic-based practice, mock exams, missed-question review, bookmarked questions, and readiness tracking — no account required.
Difficulty is subjective, but Linux Commands and File Permissions is a high-priority exam concept tested in multiple ways — direct recall, scenario analysis, and command-output interpretation. Consistent practice is the best way to build confidence.
Launch a full Linux Commands and File Permissions practice session with instant scoring and detailed explanations.
Start Linux Commands and File Permissions Practice →