grep Command in Linux: Tutorial with Examples

The grep command searches text for a pattern and prints the matching lines. Most Linux users know grep "hello" file. Fewer users know the options that make grep fast to use: recursive search, context lines, multiple patterns, and regular expressions. This tutorial shows each option with a short example and its real output.

Read more →

Zsh vs Bash: Differences and When to Switch

Zsh is the better interactive shell, and bash is the safer choice for scripts, because zsh does not follow POSIX by default and runs some scripts differently. Zsh completes abbreviated paths, corrects typos, and shares history between sessions. Typo correction and shared history are off until you enable them. Without a config file, both shells start in 2 ms on a ThinkPad X9-15 Gen 1 with Intel Core Ultra 7.

Read more →

Pomogoro: A CLI-based Time Tracking App

I’ve recently released pomogoro, a pomodoro time tracking app for the terminal with desktop notifications (Linux/OSX). It reads text based files like todo.txt, makes them selectable in a window and logs the times you work on them.

Read more →

Vim: Switch Between Tests (Or Other Files)

As most people I am annoyed with repeating stuff over and over. Today I got tired of switching between test files by hand. So I wrote two little functions that switches between unit tests and their corresponding SUTs. It also creates them if non-existent.

Read more →

grep Linux Tutorial: Befehl, Optionen und Beispiele

Den grep-Befehl kennen viele Linux- und Unixuser bereits, allerdings oft nur oberflächlich. Für mehr als einfaches Stringsuchen nutzen es die meisten nicht. Wenn für dich grep nicht mehr als grep “hallo” datei bedeutet oder du grep noch gar nicht kennst, solltest du dir dieses Tutorial durchlesen 🙂

Read more →

Zsh vs Bash: Die Unterschiede und wann sich der Umstieg lohnt

Zsh oder Bash? Für die tägliche Arbeit im Terminal ist die Zsh komfortabler: Sie hat die bessere Tab-Completion, korrigiert Tippfehler und globbt mächtiger. Für Shell-Skripte, die überall laufen sollen, bleibt die Bash die sichere Wahl. Hier siehst du die Unterschiede und wie du die Zsh mit 2 Befehlen zur Standardshell machst.

Read more →

20 Top Vim Plugins Die Du Kennen Solltest

Vim bietet mit der Standardinstallation schon eine sehr gute Basis, aber man vermisst viele Features aus aktuellen Editoren/IDEs bei einer frischen Vim-Installation. Zum Glück es gibt für Vim tausende Plugins, die jedes erdenkliche Feature in Vim ermöglichen.

Read more →

Linux: fn Funktionstasten Aktivieren In 10 Sekunden

Auf meinem Acer Notebook und dem Samsung Netbook waren unter Linux (z.B. Ubuntu) die Fn Funktionstasten (Fn + Pfeiltaste hoch/runter) für die Helligkeitsregelung ausser Funktion. Zwar blendete Ubuntu oben rechts das Popup mit der Sonne ein. Und der Balken ging auch in die Richtung, in die ich per Tastatur regelte. Mein Display strahlte mich jedoch fröhlich mit voller Leistung weiter an. Das ganze hat mich ewig genervt, ausgiebiges Googlen hat auch nichts gebracht.

Read more →