deleting contents of a file

Deleting contents of a file, but preserving the file itself, with all attendant permissions …

cat /dev/null > /var/log/messages

URLs:
Chapter 28. Of Zeros and Nulls
Advanced Bash-Scripting Guide

Leave a Reply