Common Linux Commands

For reference by all of those Linux admins (will be an evolving blog):

Create Swap file:

# dd if=/dev/zero of=/var/swap/swap1 bs=1024 count=8388608  , where 8388608 is 8GB
# mkswap /var/swap/swap1
# swapon /var/swap/swap1

Written by

May 6, 2011
Comments 0

Speak Your Mind



This site uses Akismet to reduce spam. Learn how your comment data is processed.