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…

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…

Read More

Get the proper time from digital TV with the command line.

How to get the proper time from a DVB receiver with the command line. This only works if you are connected to a DVB transmission. Then you can get the time from the transmission. 4.4 Tue Mar 19 jason@Yog-Sothoth 0: $ dvbdate –print System time: Tue Mar 19 19:43:49 2019…

Read More

Get just the number of processes on your Linux machine.

This command will print the number of running processes on a Linux system. 4.4 Tue Oct 30 jason@Yog-Sothoth 0: $ ps aux | wc -l 2554.4 Tue Oct 30 jason@Yog-Sothoth 0: $ ps aux | wc -l 255 Here is a nice alternative that will work on Ubuntu. The landscape-common…

Read More

Returning just the interface name with Linux.

The network adapter name is easy to return on Linux. This simple one-liner will give this information to the user. jason@Yog-Sothoth » ~ » $ ip -o -4 route show to default | awk '{print $5}' enp0s25 Using this information to get information about a network adapter. jason@Yog-Sothoth » ~…

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 /…

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…

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…

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 ""…

Read More