2-Minute Linux Tips
Learn how to use a host of Linux commands in these 2-minute video tutorials from Sandra Henry-Stocker, author of the <a href="https://www.networkworld.com/blog/unix-as-a-second-language">Unix as a Second Language</a> blog.
How to empty a file in Linux without deleting the file
Episode 126
How to empty a file in Linux without deleting the file
Jun 27, 2024
1 mins
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.