Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Depending on the environment you can also use the truncate command. This will work if the file is open as well.

https://man7.org/linux/man-pages/man1/truncate.1.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: