Swap is a swap partition in Ubuntu systems that functions somewhat like the virtual memory of a Windows system. After adding a Swap partition to Ubuntu, you can speed up your system. Add Swap to the boot entry of Ubuntu, you can let Swap boot automatically, how to operate?
1. increase Swap
2G Swap partition increased, only need to modify count = 2k
sudo dd if = /dev /zero of = /swap.disk Bs=1M count=2k
sudo mkswap -f /swap.disk
sudo swapon /swap.disk
or
sudo dd if=/Dev/zero of=/swap.disk bs=1M count=2k && sudo mkswap -f /swap.disk && sudo swapon /swap.disk
2.Join Start
sudo vi /etc/rc.local
before exit 0 Join:
#sudo dd if=/dev/zero of=/swap.disk bs=1M count=2k & ;& sudo mkswap -f /swap.disk && sudo swapon /swap.disk
sudo mkswap -f /swap.disk && sudo swapon /swap.disk
exit 0
The above is the way to add Swap to Ubuntu's boot entry, so you don't have to manually mount the Swap partition every time you boot.
Knowing the Linux commands know that the df command can view the space of the Linux
alias is one of the commands of the Linux system. It can be used to customize the a
After Kali Linux is installed, many people dont know how to configure the network.
Lantern is a commonly used system monitoring tool, which is mostly used for Mac system and can also
What if the CentOS version is too low to install Chrome?
What should I do if the Linux system Openvpn process exits abnormally?
What should I do if the U disk file is read-only on Ubuntu and cannot be deleted?
Linux ls command operation example summary
Linux detection and mounting the second hard disk step
Does Linux use the ODBC method or the DBI way to install the R language extension package?
Linux php-cgi accounted for 100% of the memory solution
Linux replacement hard disk has been mounted directory skills
Introduction of 4 functions of keyboard ESC key in Win7 system
How to delete the details of WeChat change?
Win8 application switching operation method
Master tricks: easy 2 step solution for dual system installation
Ubuntu Linux system support for tablets released
Win7 system right-click new no word, Excel, ppt file how to solve?
How does Win8/Win8.1 remove the "other users" from the boot display
How to deal with win7 copy files no longer prompt the name is too long