Multiple choice technology operating systems

The Command :>filename is used to

  1. Empty the existing file or create an empty file

  2. Print the string : to filename

  3. Delete the file

  4. Append the file at the last line

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

The shell command ':>filename' uses the null command (:) combined with output redirection to truncate an existing file to zero bytes or create a new empty file.