Multiple choice technology operating systems

command for deleating a file in linux terminal

  1. del

  2. delete

  3. rm

  4. remove

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

rm (remove) is the standard Unix/Linux command for deleting files and directories. The name 'del' is used in DOS/Windows systems, not Linux. You can use 'rm -r' to recursively delete directories, and 'rm -f' to force deletion without prompts. Note: there's no undo for rm!