Multiple choice technology operating systems

How to remove a file named : -sag

  1. rm -f -sag

  2. rm ./-sag

  3. rm -m -sag

  4. none

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

In Unix/Linux, filenames starting with a dash are interpreted as command options. Using './-sag' provides a path prefix, preventing the dash from being treated as an option flag. The 'rm -f' and 'rm -m' flags are incorrect approaches.