Hacker News new | ask | show | jobs
by whacker 5810 days ago
That does not do what you think it does.

Your command will make /path/to/logfile fill up all available space on the disk. To truncate that file, which is probably what you wanted to do, you should

`echo > /path/to/logfile`

1 comments

His command does exactly what he says it does. Your command truncates the file and then writes a newline into it.