🔥 3-day streak
CompTIA Linux+ (XK0-006)18 / 123
Question 18 of 123
A backup script must process a list of directory paths, some of which contain spaces (e.g., '/data/project files'). The current code fails, treating each word as a separate item: ```bash DIRS="/data/project files /var/log /srv/web root" for d in $DIRS; do tar -czf "/backup/$(basename "$d").tgz" "$d" done ``` Which change correctly handles paths containing spaces?
Reviewed for accuracy · Report an issueNext question