Question 5 — AZ-104 Practice Exam 4
For each statement below, indicate whether the answer is True or False
| Item | True | False |
|---|---|---|
| The rm -rf / command deletes every file on the drive. | □ | □ |
| cp silently overwrites existing files unless -i is used. | □ | □ |
| ps aux and ps -ef produce different results and cannot be used interchangeably. | □ | □ |
| The w command displays logged-in users and their activities. | □ | □ |
Correct answers
- The rm -rf / command deletes every file on the drive. → True
- cp silently overwrites existing files unless -i is used. → True
- ps aux and ps -ef produce different results and cannot be used interchangeably. → False
- The w command displays logged-in users and their activities. → True
Explanations
True: rm -rf / is catastrophic.
True: cp overwrites unless interactive mode is enabled.
False: ps aux and ps -ef are equivalent (POSIX vs BSD).
True: w shows user activity.
The rm -rf / command deletes every file on the drive.
cp silently overwrites existing files unless -i is used.
ps aux and ps -ef produce different results and cannot be used interchangeably.
The w command displays logged-in users and their activities.