CompTIA Operating Systems 2 — Questions and Answers
Question 1: A technician needs to check disk usage on a Linux system. Which command displays disk space usage for all mounted filesystems?
- du -sh
- df -h (Correct answer)
- fdisk -l
- lsblk -f
Correct answer: df -h
The 'df -h' command displays disk space usage for all mounted filesystems in human-readable format.
Question 2: Which Windows feature allows an administrator to run a command prompt with elevated privileges?
- Task Scheduler
- Run as administrator (Correct answer)
- User Account Control prompt
- Windows Defender
Correct answer: Run as administrator
Right-clicking and selecting 'Run as administrator' launches the application with elevated (administrator-level) privileges.
Question 3: A user reports that Windows takes a very long time to boot. Which tool should a technician use to identify startup programs that are slowing down boot time?
- Device Manager
- Task Manager Startup tab (Correct answer)
- System Configuration (msconfig)
- Event Viewer
Correct answer: Task Manager Startup tab
The Startup tab in Task Manager shows which programs launch at startup and their startup impact, making it the most direct tool for diagnosing slow boot times.
Question 4: What is the purpose of virtual memory in an operating system?
- To increase CPU clock speed
- To extend usable RAM by using disk space (Correct answer)
- To partition the hard drive
- To improve GPU performance
Correct answer: To extend usable RAM by using disk space
Virtual memory uses a portion of hard disk space (pagefile/swap) to extend the effective amount of RAM available to the system.
Question 5: Which Linux file holds user account information including usernames and home directories?
- /etc/shadow
- /etc/passwd (Correct answer)
- /etc/group
- /etc/hosts
Correct answer: /etc/passwd
The /etc/passwd file stores user account information such as username, UID, GID, home directory, and default shell.
Question 6: A technician needs to restore a Windows system to a previous working state without losing user files. Which feature should be used?
- System Image Recovery
- System Restore (Correct answer)
- Reset this PC
- Startup Repair
Correct answer: System Restore
System Restore rolls back system files, registry settings, and installed programs to a previous restore point without affecting user data files.
Question 7: What does NTFS offer over FAT32 that makes it preferred for modern Windows installations?
- Compatibility with macOS
- Support for files larger than 4 GB (Correct answer)
- Faster read speeds on USB drives
- Lower disk overhead
Correct answer: Support for files larger than 4 GB
NTFS supports individual file sizes greater than 4 GB, whereas FAT32 has a 4 GB per-file limit, making NTFS essential for modern workloads.
A technician needs to check disk usage on a Linux system.
Which command displays disk space usage for all mounted filesystems?