What command, when issued from a non-root user, will remove all files from the /tmp directory by prompting the user for the root password?

What command, when issued from a non-root user, will remove all files from the /tmp directory by prompting the user for the root password?








A. clrtmp
B. rm -rf /tmp/* -su
C. su "rm -rf /tmp/*"
D. su -c "rm -rf /tmp/*"









Answer: D


Learn More :

CompTIA

Learn More Multiple Choice Question :