# 4기가 할당 # 4 Giga Allocation
sudo fallocate -l 4G /swapfile

 

#권한 수정 #AuthorityCorrection
sudo chmod 600 /swapfile

 

# /swapfile 파일이 스왑메모리로 동작하도록 만들어줍니다. Make the /swapfile file work with swap memory.
sudo mkswap /swapfile

 

# 스왑을 활성시킵니다. Activates the swap.
sudo swapon /swapfile

 

 

 

재부팅해도 유지할 수 있게 /etc/fstab을 수정한다. Modify /etc/fstab to maintain it even after rebooting.