Bash math refers to the mathematical operations you can conduct on the Linux terminal. Normally, you wouldn’t associate bash with math operations – after all, why would you choose to type in clunky commands on the terminal, when you could open a calculator instead? However, there are some surprisingly useful use case scenarios where it […]
Category: VPS Hosting
Launching Your Hosting Business: Your 4-Step Quickstart Guide
As we head into 2025, I can’t help but reflect on the last nine years since launching NameHero. Back in 2015, my mission was simple: make it easy, affordable, and scalable for businesses to have the same level of hosting infrastructure I perfected for my own online ventures. Fast forward to today, we’ve supported over […]
How to Use the xxd Command in Linux
We use the xxd command in Linux to convert a file into its hex equivalent and to show the hex output side by side with the ASCII representation. This might seem like a niche use case scenario, but it’s surprisingly useful for debugging. There are certain file formats, for example, that are supposed to start […]
How to Start a Reseller Hosting Business in 2025: Defining Your Niche
As we close out 2024, I’ve been reflecting on the goals I set for myself and NameHero over the past year. Personally, I’m not a fan of “resolutions”—they’re like January gym memberships: hot for a few weeks and then abandoned by February. Instead, I take a step back, review what I’ve accomplished, and re-evaluate what […]
How to Use “envsubst” In Linux
The “envsubst” tool is part of the GNU’s “gettext” package that programmers use to create multilingual programs. We use envsubst to substitute environment variables in a file or a data stream. This is particularly useful when creating and adapting configuration file templates in a variety of scenarios. For example, you sometimes have a template configuration […]
How to Use the Awk “If Else” Statement
Earlier, I’d written about how the awk statement in Linux can be a superior alternative to grep in many situations. One of those included the ability to perform complex operations, including control loops. The “if-else” statement is one of the most basic control loops in all languages. While it’s strange to view awk as a […]
How to Remove a Remote Origin in Git
Most people working on a git repository, have done so by cloning a remote one. The thousands of developers who work on projects everyday, have mostly taken an existing repo and are working on it. When you do this, git sets up a connection to the remote repo and calls it the “origin”. This makes […]
What Is SIGSEGV and How Do We Fix It?
SIGSEGV is a signal sent by the operating system to a process indicating that the process has attempted to access memory that it shouldn’t. This kind of error is prevalent in low-level code – that deals directly with system code, for example. These days, SIGSEGV errors are rare because of improvements in modern programming languages […]
How to Reset the Last Commit in Git
While the purpose of git is to maintain a faithful record of a project’s history, it’s usually not a good idea to blindly include every single change, including mistakes or tiny commits that should be merged into a single one. I’ve written before, about how we can use git squash to keep a clean project, […]
How to Redirect stderr to stdout in Linux
Linux uses the concept of “streams” to handle input and output messages. Specifically, there are three: These streams are defined by the environment in which a command operations, and doesn’t depend on the command itself. So if a script has an output – say via an “echo” statement or it throws an error, these messages […]
