Getting IP address information in Powershell 5.1.

Getting information about your IP address is easy in Powershell. Below is a simple example, this is printing information about the IP addresses on the system. PS C:\Users\Jim\Pictures\Saved Pictures> Get-NetIPAddress |Select-Object IPAddress   IPAddress ——— fec0::6155:1c09:8069:d506%1 fe80::6155:1c09:8069:d506%7 ::1 10.0.2.15 127.0.0.1PS C:\Users\Jim\Pictures\Saved Pictures> Get-NetIPAddress |Select-Object IPAddress IPAddress ——— fec0::6155:1c09:8069:d506%1 fe80::6155:1c09:8069:d506%7 ::1 10.0.2.15 127.0.0.1 This is a … Read more

Various useful tips for using Ubuntu.

How to check the installed Ubuntu version with the command line. Use this command to check the installed version of the Ubuntu distribution. 4.4 Sat Mar 07 jason@Yog-Sothoth 0: $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"4.4 Sat Mar 07 jason@Yog-Sothoth 0: $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS" This is another … Read more

Another way to get the actual IP address of your machine.

This is yet another way to get the actual IP address of your Linux machine on a LAN. This returns just the IP address of your Linux computer. jason@jason-Lenovo-H50-55:~$ ip a | awk ‘/inet / { print $2 }’ | sed -n 2p 192.168.1.4/24jason@jason-Lenovo-H50-55:~$ ip a | awk ‘/inet / { print $2 }’ | … Read more

Another way to gain root permissions on a Debian Linux installation.

This is another way to gain root permissions on a Debian system; this is a script that will elevate the user to root for a specific command; like using the sudo command. su-to-root -X -c "cat /etc/shadow"su-to-root -X -c "cat /etc/shadow" This is what you get if you try this without root permissions. [flynn@flynn-grid-runner ~]$ … Read more

How to get the routing table of your network with Windows and Linux.

Showing the routing table in Linux is very useful when you are required to get information about a network. This is the output when retrieving the routing table in Windows 7. C:\Users\jason>route PRINT =========================================================================== Interface List 16…00 ff f0 18 9a f5 ……TAP-Windows Adapter V9 13…00 13 46 3a 02 83 ……Realtek RTL8139/810x Family Fast … Read more

How to remove unneeded packages on your Ubuntu Linux system.

I wanted to update my Ubuntu 14.04 server and I saw this output. I needed to remove these unwanted packages on my system. ubuntu@ip-172-31-20-16:~$ sudo apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done The following packages were automatically installed and are no longer required: libdigest-hmac-perl libdrm-intel1 libdrm-nouveau2 … Read more

How to get the brand and model of your graphics card with the command line.

This command will print out the model and make of your graphics card. This is another command to run on an unknown computer to see what hardware is in it. jason@eyjafjallajkull:~$ lspci -vnn | grep VGA -A 12 | head -n 1 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Turks XT [Radeon … Read more

How to get the geographical location of an IP address.

How to get the geographical location of an IP address. This simple command will get this for you. [jason@darknet:~] curl ipinfo.io/203.113.124.148 ; echo "" { "ip": "203.113.124.148", "hostname": "No Hostname", "city": "", "region": "", "country": "TH", "loc": "13.7500,100.4667", "org": "AS9737 TOT Public Company Limited" }[jason@darknet:~] curl ipinfo.io/203.113.124.148 ; echo "" { "ip": "203.113.124.148", "hostname": "No … Read more

How to get the weather report from the command-line in America with Linux and other cool commands.

This is how to get the weather report for any American zip code with the Linux command-line. Type sudo apt-get install weather-util to install this utility on Linux Mint 14. In this example we are checking New York City. john@adeptus-mechanicus ~ $ weather 10001 Current conditions at New York City Central Park, NY Last updated … Read more