How do you find your IP address on Linux?

There are several different methods you can use to find your IP address on the Linux operating system. I find the below method the quickest and easiest method.

Steps
1. Open a SSH session to the server or open up a terminal window.
2. Enter the below command.

ip address

Sample Output

192.168.1.172 is the IP address of the server in this example.

Additional Information

You can also use the short version of the command which is listed below.

ip a

How do you find the kernel version on Linux?

One of the big questions you might have when running Linux is what server version am I running. One of the quickest way is to use the uname command.

Steps
1. Open a SSH Session to the server or open a terminal.
2. Enter the below command.

         uname -r

Sample Output

5.3.0-29-generic

Per the output of the command it shows that you are running kernel version 5.3.0-29-generic or in general terms 5.3

  • 5: Kernel Version
  • 3: Major Revision
  • 0: Minor Revision
  • 29: Patch Level
  • Generic: Linux Kernel Type

Additional Information

You can find the latest information and releases at Kernal.org
https://www.kernel.org/