Get the currently installed Java version and vendor on Ubuntu / Debian Linux

To day I had to  figure out the Java version installed on my machine while digging through some problems with my IntelliJ IDE. This is how you can get the currently installed Java version and vendor on Ubuntu or other debian derivatives on bash.

That gives you something like that:

As you can […]

Get your public IP via shell

To get your public IP you can use websites like or just google for it ( But you can also get your public IP via the following Linux shell  command (the smart way :-D):

This gives you an output like that:

Or for IP address only output:

Example output:

To install get […]

List processes after CPU usage

If you piped the result into the head command, you can limit the result to the n entries with the highest CPU usage.

In this example you will see the ten most CPU-consuming processes on the machine. The ‘–‘ before pcpu results in a descending order. Example output:

To see what happens […]

Linux – Get information about installed memory

On Ubuntu you’ll get the all memory (RAM) information with:

Example output:

If you only want to get the amount of installed memory, you can use grep to filter the output:

Example output:

To get the the amount of free memory you can simply use:

Example output:

It also gives you […]

Size of files and folders in the current directory

To get the size of files and folders in the current directory (disk usage)

To get a list of of the biggest data usage folders and files, you can use:


Get free disk space and partitions

Show free disk space for all existing partitions (disk free):

Example output:


Get information about the installed linux distribution, kernel and version

Get the kernel version

Example output:


Example output:

You can even use the following command to get the kernel version. It will also serve you information about the build date and a few more facts:

Example output:

This tells you the exact kernel version (3.13.0-32-generic), who compiled the […]