Войти
  • 240Просмотров
  • 5 лет назадОпубликованоNawaf alzeer

resize swap file command line linux

First disable swap file: sudo swapoff /swapfile Now let's increase the size of swap file: sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 oflag=append conv=notrunc The above command will append 1GiB of zero bytes at the end of your swap file. Setup the file as a "swap file": sudo mkswap /swapfile enable swaping: sudo swapon /swapfile