Find information in a swapfile image with Linux.

The strings utility for Linux is very useful for finding all text strings in a binary file. I am using a swapfile image as an example. It can easily be searched for various strings that can reveal various information. Below is an example, I am looking for instances of the word “user”. ┌─[✗]─[jason@jason-desktop]─[~/Downloads] └──╼ $strings … Read more

Updating the grub2 boot-loader menu & adding swap space to your computer.

How to update the GRUB bootloader menu on Linux To update the grub bootloader on your Linux box, this is another way to do this. grub-mkconfig > /boot/grub/grub.cfggrub-mkconfig > /boot/grub/grub.cfg This will update the grub2 bootloader and add any new kernels in /boot. Creating a new swapfile for your Linux system. Firstly we create a … Read more

How to add a swapfile with Linux and thoughts on the Die Hard 4.0 movie.

To create a new swapfile on your Linux machine to complement the existing /swap partition; the dd command will come in handy. This command will create the swap file as a loopback filesystem. adeptus-mechanicus ~ # dd if=/dev/zero of=swapfile bs=1024 count=524288adeptus-mechanicus ~ # dd if=/dev/zero of=swapfile bs=1024 count=524288 This command will make the filesystem a … Read more