At first glance, comparing strings in bash might appear to be a niche use-case scenario. But as I’ll explain below, it’s one of the most common operations you’ll be doing as a Linux command-line user. You can compare these strings in bash as standalone instructions on the command line or by entering these instructions into […]
Category: Linux Command Line
Efficient Bash String Concatenation Techniques in Shell Scripting
In the context of the Linux command line, “Bash” can refer to two separate, but related activities: Both of the above are examples of using bash. It’s important to note, however, that there are other shells than Bash. For example, there is “sh (Bourne Shell)”, zsh, fish, and more. Bash is the most common shell […]
The Authenticity of Host Can’t Be Established: SSH Warning – What Does It Mean?
When you connect to a server via SSH for the first time, the program sends you a warning saying that it doesn’t recognize the remote host, and can’t be sure that the server to which you’re connecting, is in fact the one to which you intend to connect. This is normal, and unless you’ve manually […]
Git Local Branch Deletion: How, And Why Is It Necessary?
If you’re working on a project, you can hardly do without a version control system, and git is the very best. In fact, it’s so easy to use that you might be tempted to create various branches to test different features – which is a good thing! The ability to test your changes in git […]
How to Save in Vim: A Comprehensive Guide for Beginners
If you’re going to be using the command line in Linux, you have to know how to save in vim. Vim is a powerful text editor commonly used on Linux systems and always comes pre-installed, so you don’t have to do anything to access it. Moreover, it has many advantages compared to other file editors. […]
How To Master Git Squash Commits
Git is an invaluable tool when working on a code project involving multiple people. Version control provides a comprehensive history of a project, allowing you to trace its development from the beginning, letting you see who changed what, and also letting you go back in time to a specific version whenever you want. However, sometimes […]
How to Change the Ubuntu Hostname
An Ubuntu hostname is a unique identifier for your server. Despite what the name implies, these hostnames are primarily for internal consumption, and you won’t need to resolve it via a DNS server. So technically, there’s nothing stopping you from using a ridiculous hostname that doesn’t make sense. You could also use a hostname with […]
How to Rename a File in Linux
Renaming a file in Linux is easy, once you know how. You can do it from either the command-line or using the GUI, though the latter is faster and uses fewer resources. In this tutorial, I’ll show you how to rename not just one file, but multiple files at the same time. In addition, I’ll […]
How To Open Or Add Ports Using IPTables
IPTables is the most comprehensive tool for managing traffic rules on your VPS server. The strange thing is that you might never have used it directly by invoking the “iptables” command on your server, but all the front-end tools like firewalld and CSF use IPTables in the background. We have a tutorial on NameHero on […]
How to Install the NodeJS Selector in cPanel/WHM
In an earlier tutorial, I’d written about how to install Node.js on EasyApache. However, this doesn’t mean that it’s easy for users to get started with creating a Node.js application. If you have a shared hosting VPS, and you want to offer Node.js to your clients, then you need a much more streamlined way to […]
