Americas

  • United States

How to empty a file in Linux without deleting the file

Overview

In this Linux tip, we’re going to look at the easiest way to empty a file of its contents while not deleting the file. All you have to do is point a greater-than sign at a file and its contents are removed.

Register Now