Due to extreme system use, a Linux system requires some additional swap space. To initialize 5 GB of additional swap space, which combination of commands should be used?

Last Updated on December 9, 2021 by Admin

Due to extreme system use, a Linux system requires some additional swap space. To initialize 5 GB of additional swap space, which combination of commands should be used?

  • dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; mount /tmp/swapfile
  • dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; swapon /tmp/swapfile
  • dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; swapon /tmp/swapfile
  • touch -5G /tmp/swapfile; swapon /tmp/swapfile
  • mkswap /tmp/swapfile 512000; swapon /tmp/swapfile
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments