Converting IP addresses to binary using math.
Convert an IP address to binary easily.
Convert an IP address to binary easily.
I wish someone would bring an open-source Nvidia driver to the Linux operating system. I hate having to use a binary installer you have to download and run to install the drivers when you could just have the driver code in the kernel. I know it is not hard to install as long as you … Read more
This one-liner will take your IP address and convert it into binary. This is very useful and fun to do. ┌──[[email protected]]─[~/Videos] └──╼ ╼ $ ipcalc `ip a | awk ‘/inet / { print $2 }’ | sed -n 2p | cut -d "/" -f1` | awk ‘/Address/ {print $3,$4}’ 11000000.10101000.00000001. 00000010┌──[[email protected]]─[~/Videos] └──╼ ╼ $ ipcalc … Read more
The grep utility is very useful for searching for files and text snippets. It can also be used to search a file for certain values in hexadecimal. In the example below, I am searching for the text “JFIF” in hexadecimal in certain files. This will tell me that they are jpg image files. The hexadecimal … Read more
This is an image of an amazing stellar dance, these two stars orbit each other in 2.5 hours and they are gradually moving inwards towards a collision. This type of collision betwixt Neutron stars is the cause of the most powerful explosions in the Universe, a gamma ray burst. A collision between two Red Dwarf … Read more
How to convert numbers to binary and back to decimal easily with the Linux command line. This would be very useful to any networking technician.
How do you search a binary file for a certain string that ends in a number; but you are not sure what the number is? Then this command will perform this task. john@adeptus-mechanicus ~/Documents/master $ strings vesperas.wad | grep -a "MAP[0-9]" MAP15john@adeptus-mechanicus ~/Documents/master $ strings vesperas.wad | grep -a "MAP[0-9]" MAP15 I was using this … Read more
One important skill in computer networking is converting an IP address to binary from decimal. Here is an example. 172.124.64.2 This IP address converts into this binary number. 10101100.01111100.01000000.00000010 The way I find is the easiest with pen and paper is to write down this number sequence. 128 – 64 – 32 – 16 – … Read more