Ivan Tomica

Category: Blog

Total 90 Posts

“One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.” – Robert Firth

Swap file

First step is to create empty file (I’ll create 1GB one). You can do that by issuing one of the following commands (you’ll need to be root): fallocate -l 1G /swapfile or dd if=/dev/zero of=/swapfile bs=1M count=1024 After that change permissions on that file so nobody else can read it:

Continue Reading