Have you encountered the following error message “Name or Service Not Known” while working on your Linux system? If so you have come to the right place. In this post, we will explore what this message means, what could cause this message, and different solutions to those issues. Understanding The Error Message This error occurs […]
Category: Linux Command Line
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 […]
How To Create Groups In Linux
A group in Linux is a way to bunch users together so that they’re easier to manage in one place. The easiest way to demonstrate the power of groups is to show how we can manage their permissions in one go. But you can do more than just manage permissions. With special “control groups”, you […]
How To Use The Bash Heredoc Syntax In Linux
Linux allows you to use the bash prompt to provide the input for a variety of commands. For example, let’s say you want to quickly create a file with some text. The following will work nicely: echo “Test file” > testfile.txt This will create a file called “testfile.txt” as shown here: You can see that […]
How To Use The Iperf Command On Linux
Most readers have heard likely heard of services like speedtest.net, fast.com, or speed.cloudflare.com used to test internet speed also known as network bandwidth. The downsides of services like these is that they reply on your internet connection and more often than not a web browser. If we flip both these and are looking for a […]
How to Use the “Find” Command on Linux
The “find” command in Linux is more than what meets the eye. On the surface, it’s a simple way to search for files and folders. But once you understand its power, you’ll see that it can be used for more than that. First I’ll show you how to use its basic functionality, and then we’ll […]
What Is /dev/shm And Why Is It So Useful?
In Linux, /dev/shm is a special location that you can use to store files and folders. This location is available to all applications that use the system and is incredibly fast because the data isn’t stored on the disk, but in RAM. In addition, the data is only temporarily stored and is lost after a […]
Fixing “the following packages have been kept back” Ubuntu Error
On Debian systems like Ubuntu, we keep all our packages up to date by using the following commands: sudo apt updatesudo apt upgrade The first statement gets the list of all updated packages from the repositories and also compares what you have to what’s available, thereby creating a checklist for things to update and giving […]
