✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
#!/bin/bash
LOG="system_report.txt"
echo "User: $(whoami)" > "$LOG"
echo "Directory: $(pwd)" >> "$LOG"
date >> "$LOG"