Create A New Swap Partition Using A Big File

# Note: using '#' as command prompt.
# dd if=/dev/zero of=/tmp/swap bs=1M count=512
# mkswap /tmp/swap
# free; swapon /tmp/swap; free

你可能感兴趣的:(Create A New Swap Partition Using A Big File)