Programming for fun and profit

A blog about software engineering, programming languages and technical tinkering

Tue 21 May 2019

Piping commands in bash

Posted by Simon Larsén in Tip of the Week   

Many, many bash commands are built around and meant to be used with a fundamental feature of the bash shell (actually, most shells), called piping. Put simply, piping takes the output of one command and provides it as input to the next. Here's a simple example of running ls and …

Read more...


Mon 06 May 2019

Using bash aliases

Posted by Simon Larsén in Tip of the Week   

For this Tip of the Week, I'd like to present something that took me a while to figure out why it was useful. That something is bash aliases, and I'll now walk you through how to create aliases, and the two main ways in which I use them (although I'm …

Read more...


Mon 29 April 2019

Git local

Posted by Simon Larsén in Tip of the Week   

Nowadays, Git is almost ubiquitous in software development. Most developers also know that Git is a decentralized version control system, meaning that every copy of the repository carries the full revision history, and there is no "central" repository. A consequence of the decentralized aspect of Git is that you can …

Read more...



Tue 09 April 2019

Reverse search in bash

Posted by Simon Larsén in Tip of the Week   

Have you ever found yourself furiously tapping the UP-arrow (or ctrl+p) to find a command that's probably waaaay up there? Would you be surprised if I told you there's a better way? When you want to re-use a command you've written previously, and you know it's not the previous …

Read more...