A Journey of a Thousand Miles Begins with a Single Step

Build a function for RPM cleanup

Sometimes the rpmdb checksum is invalid. To fix that I have created a simple function in bash script that reads the input from stdin. If yes in any kind or y ignore case is entered, the rpmdb will be rebuild and we clean the local yum cache.

Read more

Use netstat to check used ports of a process

This blog post demonstrates a small example how helpful netstat can be. netstat is capable to display all used ports of the user processes.

Read more

Change log level at runtime in JBoss EAP/Wildfly with CLI

This post demonstrates you how you can set the defined log levels of log categories (e.g. classname) and of the root logger in the standalone.xml. Same applies to the domain mode. Just add the profile name before the cli command. It was very useful, to correct the verbose output of a running application in production.

Read more

Speed up my Linux Book

As a special daily deal I bought the Kingston SSDNow V300 240 GB for my linux notebook, Lenovo Thinkpad Edge S430. This post is going to illustrate the differences and performance gain due to the upgrade.

Read more

Append log entry to log file

Today a co-worker asked me how to get the value of a configuration entry from a java properties file. For this purpose cut does a splendid job.

Read more

Using date in the shell

A small example how to use the date function in the linux shell. For ISO-Format yyyy-MM-dd%Y-%m-%d

Read more

Using a pidfile for control flow

I had to write recently some shell scripts that may be used for LSB like init.d services. It was a quite good experience and fresh up of my bash scripting skills.

Read more

$var or ${var}?

I got some bash scripts handed out and saw that some variables are referenced like that

Read more

Clear screen

Working under terminals or cli interfaces can be a messy thing. From time to time it is nice to have a clear screen. This little post shows how to do that.

Read more