I’d earlier written about how to restore a git stash when you’re working with multiple projects. But there’s a lot more to deleting a stash that I was able to cover in that brief overview. Here’s everything you need to know about deleting a git stash. I’ll also show you how to try and recover […]
How to List Cron Jobs: Master Cron on Linux
Cron jobs are commands and scripts that the system runs periodically. Just as with cron on reboot, you can also use the systemd service manager to accomplish the same thing, but cron can be used by anyone and doesn’t require special permissions. It’s also easier to understand than systemd, but isn’t as integrated into the […]
How To Increment A Variable In Bash
Scripting is deeply integrated into bash. For example, I’d written earlier on how to efficiently concatenate strings. In the same way, you can use it as a programming language to perform various tasks, and this means that there are different ways to increment a variable in bash. In this article, I’ll show you the different […]
How to Use Crontab Reboot to Schedule Tasks
Crontab is a Linux/Unix system utility to manage the scheduling of tasks. You can use it to specify which tasks run at which times, and create complicated rules for managing their periodicity. Here at NameHero, we’ve written before about how to create cronjobs, but the kind of cronjobs in that article, aren’t the same as […]
How To Change A Directory In Python
Despite being over three decades old, Python is still an extremely relevant and popular programming language. The fact that it’s easy to understand, and works on a variety of platforms with little to no modification of code, along with its community support and deep integration with various libraries, make it a “must-have” tool in the […]
Git Branch Naming Conventions
When you first start using git, it can be intoxicating to see how easily you can create new branches and merge them. You feel powerful – as if you can do whatever you want and git will keep track of everything for you. And it’s true! Using git for software development gives you a level […]
How to Use Git Stash Restore to Work Multiple Projects
Software development is rarely so kind as to be linear. It would be great if we could work continuously on a single feature without distractions, and only move to something else when the previous job was done. In reality, however, even single developers who work on a project don’t have the luxury of working on […]
Yum vs. Dnf: All You Need To Know
Those of you who work on Fedora, CentOS, or RHEL are familiar with yum. Fedora users might have forgotten yum altogether because it was replaced by dnf so long ago. But other, downstream releases like RHEL and CentOS, took another four years to catch up and continued using yum. Dnf is yum’s replacement and is […]
How to Delete Lines with Sed in Linux
“Sed” stands for “Stream Editor”, and is a Linux tool designed for modifying input streams of text on a line-by-line basis. When compared to other text manipulation tools like awk and grep, sed is used for quick editing functions. Awk, on the other hand, is a full-fledged programming language with control structures and string manipulation. […]
How to Grep Multiple Strings
Grep is one of the most common Linux commands. Earlier, I’d written an article on using the pipe command, and grep was the most important example of using the pipe operator to filter the output of commands and search for strings. In this tutorial, I’ll show you how to use grep to search for multiple […]
