• No related posts.

      • No related posts.

        • No related posts.

          • No related posts.

              No related posts.

            Add swap on Linux

            [root@host ~]# dd if=/dev/zero of=/swapfile bs=1024 count=1048576
            1048576+0 records in
            1048576+0 records out
            [root@host ~]# sync
            [root@host ~]# mkswap /swapfile
            Setting up swapspace version 1, size = 1073737 kB
            [root@host ~]# swapon /swapfile
            [root@host ~]# echo “/swapfile swap swap defaults 0 0″ >> /etc/fstab

            Related posts:

            1. Script to generate interface configs on Linux
            2. IP GRE Cisco Linux
            3. Sysctl Linux
            4. How to sort folders by size with one command line in Linux
            5. How do I find out Linux Disk utilization RHEL/Centos?
            This entry was posted in Centos, Debian, Fedora, Linux, Redhat, Ubuntu and tagged , , , , , .

            Leave a Reply