CyberCertPrepSecurity FundamentalsLinux BasicsEASYFree question
Which command removes a file in Linux?
- A.C. rm
- B.B. remove
- C.A. del
- D.D. erase
Why A is correct
'rm' removes files. Use 'rm -r' for directories (recursive) and 'rm -f' to force deletion without confirmation. 'rm -rf' is powerful and dangerous - it recursively force-deletes. Always double-check before using rm with wildcards.
Know someone studying for Security Fundamentals? Send them this one.