Creating a swap file
Using the command dd you can create swap file.
dd - convert and copy a file
First of all check the current swap size using the command 'free'
$ free
Output
total used free shared buffers cached
Mem: 1025620 1009140 16480 0 2252 465116
-/+ buffers/cache: 541772 483848
Swap: 2096440 18924 2077516
Create a directory called 'swap' under slash '/'
$ sudo mkdir ...
0
Posted by Shahid