Recently, I’ve had to work on a project using AngularJS and node.js. Development was eased using a Ubuntu 14.04 virtual machine, through Vagrant. Not a big deal to install, I was saying to myself, except I ran into a ton of errors with my very naïve approach (geez, what an optimistic fool I can be sometimes).
Truncating a file?
To truncate a file is to make it empty (its size becomes 0 byte). This comes in handy for logs, when they grow too big, or when you need to re-use an existing file but want to skip the chmod/chown steps.