This will reduce the filesize of foo and bar to 0 bytes:
foo
bar
truncate -s0 foo bar
Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!
If the files do not exist they will be created.
You can use this to easily truncate your application's log files:
truncate -s0 log/*.log