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 […]

Remove all files and folders including hidden files on bash

To remove all files and folders including hidden files such .gitignore, .htaccess, .git etc. on bash you can use the following command:

Is the same as:

But ever shorter. ūüėČ

Wipe a disk via Linux shell

This is how to wipe a disk via Linux shell:

The command above erases all data on the device /dev/sdc and overrides the data 2¬†times. Finally every bit is overridden by zeros. So in sum it takes 3 iterations to wipe a disk via Linux shell. n specifies the number of iterations taken place […]

Get file encoding via Linux shell

To find out which encoding a certain file has, you can use the file command on Linux shell:

Output example:

 

Homefolder permissions bug ISPConfig

Today I ran into a still open bug of ISPConfig (ISPConfig 3.1.3 under Debian Jessie). The problem occurred, when I tried to clone a BitBucket repository with a non root SSH-user in his own website root (where permission rights generally should be no problem). Hence I wanted to use key-based authentication for BitBucket, I generated […]

Setup monit behind Apache proxy under ISPConfig

Today I wanted to setup monit behind Apache proxy on my webserver, which runs ISPConfig (https://www.ispconfig.org/) under Debian. Monit is a OpenSource monitoring¬†tool for Linux (see¬†https://mmonit.com/monit/). Requirements I had the following requirements on¬†the solution: monit should only be accessible from the server itself (localhost) monit should run under a special SSL-secured URL (not IP:PORT as […]

Mount ISO file under Ubuntu Linux

Today I had the challenge, that I wanted to copy a DVD and ¬†play it with the VLC media player (http://www.videolan.org/vlc/index.html). Therefore I had to learn how to mount iso file(s) under Linux. In my case it was Ubuntu 16.04.1. (see also my article about how to get your Linux distribution and version). How to […]

No space left on device under Ubuntu Linux

Today I had problems (“No space left on device” errors) during a system upgrade of Ubuntu Linux. There where error messages telling me the boot Partition is full:

That’s why I had to find out, whats in this boot folder.

As you can see this folder contains all required stuff to boot the […]

Count search results on Linux shell

Lets imagine you want to search for a term in a file and you want to know, how often it can be found in the file. With this command combination you can count search results on bash:

This is how this way to count search results works: The input file is opened in¬†less. Afterwards […]