03-09-2017, 02:52 PM
(This post was last modified: 03-09-2017, 02:53 PM by martinayotte.)
More "standard way" to create swap files is :
"free" command will shows both real memory and swap.
Code:
$ dd if=/dev/zero of=/path/to/swapfile bs=1M count=512 # For 512MB swap file
$ mkswap /path/to/swapfile
$ swapon /path/to/swapfile
"free" command will shows both real memory and swap.