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: Linux Command Line
Grep Show Line Number & Usage Guide
The grep command is a crucial tool for Linux administration and in this article we’ll get you started with the basic understanding of its usage. Items of discussion within this topic that we will be covering include common usage options for grep and practical use case scenarios for the command. What is grep? Grep is […]
Ubuntu Enable SSH: A Complete Walkthrough
In this article we will be going over how to install and enable SSH on an Ubuntu server. We’ll also cover how to secure your servers SSH access further with some basic port changes and firewall configuration adjustments. What is SSH? SSH (Secure Shell Protocol), is a popular way of making a secure connections to […]
How To Solve The “Umount target Is Busy” Error Message on Linux
Are you trying to unmount and getting this message? Typically, the cause of this is that something is trying to access data stored on the disk. In this post we will look at what this message means, and solutions so you can resolve the error message. What Is The Umount Command The umount command is […]
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 […]
Install Pip3 On Ubuntu: The Ultimate Guide
Pip3 is a package management system used within the command line interface for the installation and management of Python Version 3 modules from the Python Package Index (PyPI). When working in earlier versions of Python the utility is referred to as ‘pip’ but provides the same functionality. Pip3 is solely utilized when working in Python […]
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 […]
How To Record Your Terminal Window On Linux
Although you can use traditional screen recording software to capture your screen, there are better solutions. I’m introducing Asciinema, a tool specifically made to record terminal sessions. What makes this tool better, you ask? In this blog post, we will discuss that very thing, from features to how to install, record, and playback the recordings, […]
